mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
013318ee87
Summary: After some discussion with Pavel Aslanov, Lukas Piatkowski and Stanislau Hlebik, it was evident that shared future is the best approach for the bookmarks cache. The cache in this implementation maintains a shared future for each repo, fetching the full list of bookmarks. When a list of bookmarks with a given prefix is required, a filter is applied to a full list future. Two locks are used in this implementation: one for adding new repos to the hashtable and one for updating the cache. In both cases the optimistic strategy: "let's first first grab a read lock and try checking if it is good enough" is applied. Reviewed By: StanislavGlebik Differential Revision: D13573105 fbshipit-source-id: 4e084bee13ff4941d1a42d1f75fe501575858a63 |
||
---|---|---|
.. | ||
dbbookmarks | ||
src | ||
Cargo.toml |