diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-03-03 14:50:47 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-03-03 23:18:29 +0100 |
commit | 0e040c031edc6b61692e74a9b8ce0b0ff86d270a (patch) | |
tree | 4133f94021429088a726c210cacf9df010c74e6f /src/pack-objects.c | |
parent | 29ab8774e53d1c053802b69f4e66283a23e7290a (diff) | |
download | libgit2-0e040c031edc6b61692e74a9b8ce0b0ff86d270a.tar.gz |
indexer: use a hashtable for keeping track of offsets
These offsets are needed for REF_DELTA objects, which encode which
object they use as a base, but not where it lies in the packfile, so
we need a list.
These objects are mostly from older packfiles, before OFS_DELTA was
widely spread. The time spent in indexing these packfiles is greatly
reduced, though remains above what git is able to do.
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index e4b67192d..459201f58 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -21,8 +21,6 @@ #include "git2/indexer.h" #include "git2/config.h" -GIT__USE_OIDMAP; - struct unpacked { git_pobject *object; void *data; |