diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-10-10 23:03:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-10 23:03:47 +0200 |
commit | e6e24c94df9df6d39f2316113c14fe07d2ab03d7 (patch) | |
tree | 1f883be2ac3f3a84ce5af3cd1e9e32c45648e21e /streaming.c | |
parent | Merge branch 'rs/qsort' (diff) | |
parent | pack-objects: use mru list when iterating over packs (diff) | |
download | git-e6e24c94df9df6d39f2316113c14fe07d2ab03d7.tar.xz git-e6e24c94df9df6d39f2316113c14fe07d2ab03d7.zip |
Merge branch 'jk/pack-objects-optim-mru'
"git pack-objects" in a repository with many packfiles used to
spend a lot of time looking for/at objects in them; the accesses to
the packfiles are now optimized by checking the most-recently-used
packfile first.
* jk/pack-objects-optim-mru:
pack-objects: use mru list when iterating over packs
pack-objects: break delta cycles before delta-search phase
sha1_file: make packed_object_info public
provide an initializer for "struct object_info"
Diffstat (limited to 'streaming.c')
-rw-r--r-- | streaming.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming.c b/streaming.c index 3f017a1c05..9afa66b8be 100644 --- a/streaming.c +++ b/streaming.c @@ -135,7 +135,7 @@ struct git_istream *open_istream(const unsigned char *sha1, struct stream_filter *filter) { struct git_istream *st; - struct object_info oi = {NULL}; + struct object_info oi = OBJECT_INFO_INIT; const unsigned char *real = lookup_replace_object(sha1); enum input_source src = istream_source(real, type, &oi); |