mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
1a02401df9
Summary: Chad first noted that deserializing trees from the local store can be expensive. From the thrift side EdenFS does not have a copy of trees in memory. This means for glob files each of the trees that have not been materialized will be read from the local store. Since reading an deserializing trees from the local store can be expensive lets add an in memory cache so that some of these reads can be satisfied from here instead. This introduces the class for the in memory cache and is based on the existing BlobCache. note that we keep the minimum number of entries functionality from the blob cache. This is unlikely to be needed as trees are much less likely than blobs to exceed a reasonable cache size limit, but kept since we already have it. Reviewed By: chadaustin Differential Revision: D27050285 fbshipit-source-id: 9dd46419761d32387b6f55ff508b60105edae3af |
||
---|---|---|
.. | ||
fs | ||
hg-server | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
test_support | ||
test-data | ||
.gitignore | ||
Eden.project.toml |