sapling/eden/fs/store
Adam Simpkins 4d60f09c1c speed up importing manifest data from mercurial
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
2017-02-06 12:28:05 -08:00
..
git update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
hg speed up importing manifest data from mercurial 2017-02-06 12:28:05 -08:00
test update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
BackingStore.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
BlobMetadata.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EmptyBackingStore.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EmptyBackingStore.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
IObjectStore.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
LocalStore.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
LocalStore.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
ObjectStore.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
ObjectStore.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
ObjectStores.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
ObjectStores.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
StoreResult.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
StoreResult.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
TARGETS codemod: fixup more build targets in TARGETS 2017-01-14 01:44:01 -08:00