sapling/phases
Liubov Dmitrieva 4be4e90187 optimization: add new api for phasing that allows to reuse bookmarks
Summary:
This will reduce max potential number of fetching bookmarks from O(len(longest stack)) to O(1) (with is 0 or 1) if there are draft commits.

Previously, the refetching could happen on every iteration while we are
searching for public roots.

This diff allows us to reuse the bookmarks from the first time they were needed
and has been fetched in the whole phases calculation process. Fetch just once!

If there are no draft commits bookmarks were fetched only once already (and only if needed).

Reviewed By: StanislavGlebik

Differential Revision: D13753520

fbshipit-source-id: d96a6cf434cb4a1fe95e51ae734afb1671124336
2019-01-25 10:14:42 -08:00
..
schemas phases support: mysql add/get 2018-12-10 06:14:03 -08:00
src optimization: add new api for phasing that allows to reuse bookmarks 2019-01-25 10:14:42 -08:00