mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
ecb58ff8d7
Summary: Add a cmdlib argument to control cachelib zstd compression. The default behaviour is unchanged, in that the CachelibBlobstore will attempted compression when putting to the cache if the object is larger than the cachelib max size. To make the cache behaviour more testable, this change also adds an option to do an eager put to cache without the spawn. The default remains to do a lazy fire and forget put into the cache with tokio::spawn. The motivation for the change is that when running the walker the compression putting to cachelib can dominate CPU usage for part of the walk, so it's best to turn it off and let those items be uncached as the walker is unlikely to visit them again (it only revisits items that were not fully derived). Reviewed By: StanislavGlebik Differential Revision: D22797872 fbshipit-source-id: d05f63811e78597bf3874d7fd0e139b9268cf35d |
||
---|---|---|
.. | ||
main.rs | ||
parallel_different_blob_gets.rs | ||
parallel_puts.rs | ||
parallel_same_blob_gets.rs | ||
single_gets.rs | ||
single_puts.rs |