mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
4d60f09c1c
Summary: It turns out that the manifest class provides an iterentries() method to iterate through the (path, hash, flags) values. Update the code to use this rather than iterating through the paths and then having to look up the hash and flags using the path. This dramatically speeds up importing a commit with 1M files: the import time drops from around 8 seconds to under 1.5 seconds. (Of the 1.5 seconds, about half is spent reading the manifest data, and half is spent formatting and writing the chunks.) Reviewed By: wez Differential Revision: D4512538 fbshipit-source-id: ccfff162082d327d525224b2d7dc87f67bda5e22 |
||
---|---|---|
.. | ||
git | ||
hg | ||
test | ||
BackingStore.h | ||
BlobMetadata.h | ||
EmptyBackingStore.cpp | ||
EmptyBackingStore.h | ||
IObjectStore.h | ||
LocalStore.cpp | ||
LocalStore.h | ||
ObjectStore.cpp | ||
ObjectStore.h | ||
ObjectStores.cpp | ||
ObjectStores.h | ||
StoreResult.cpp | ||
StoreResult.h | ||
TARGETS |