Mercurial > hg
comparison contrib/perf.py @ 25185:bf6b476f3b36
treemanifest: cache directory logs and manifests
Since manifests instances are cached on the manifest log instance, we
can cache directory manifests by caching the directory manifest
logs. The directory manifest log cache is a plain dict, so it never
expires; we assume that we can keep all the directories in memory.
The cache is kept on the root manifestlog, so access to directory
manifest logs now has to go through the root manifest log.
The caching will soon not be only an optimization. When we start
lazily loading directory manifests, we need to make sure we don't
create multiple instances of the log objects. The caching takes care
of that problem.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Apr 2015 23:12:33 -0700 |
parents | f5b527024fcc |
children | e8eb3ecdaa0c |
comparison
equal
deleted
inserted
replaced
25184:819cd397e306 | 25185:bf6b476f3b36 |
---|