sapling/eden
Katie Mancini 1a02401df9 create a custom in memory tree cache
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
2021-04-27 17:38:39 -07:00
..
fs create a custom in memory tree cache 2021-04-27 17:38:39 -07:00
hg-server hg-server: fix autocargo lints 2021-04-23 01:58:57 -07:00
integration nfs: run most integration tests on edenfs 2021-04-23 13:30:17 -07:00
locale add a copyright header to glibc_en.po 2019-04-26 14:38:27 -07:00
mononoke edenapi_service: fix stats for bookmarks endpoint 2021-04-27 11:16:40 -07:00
scm checkout: create CheckoutPlan from ActionMap 2021-04-27 13:33:25 -07:00
test_support test_support: fix rmtree error function 2021-04-08 19:00:42 -07:00
test-data enable treemanifest in snapshots 2019-08-28 18:46:03 -07:00
.gitignore eden: wire up mac contbuild 2019-02-05 21:52:30 -08:00
Eden.project.toml Eden.project.toml file for Nuclide 2018-04-26 11:05:23 -07:00