diff options
author | Jiang Xin <zhiyou.jx@alibaba-inc.com> | 2019-02-02 21:30:13 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-04 14:18:24 -0800 |
commit | 301117764041101ae228e8e33c12c0b232b06408 (patch) | |
tree | 6287b7de285cd6a39f590e76ea41631065e9f054 /t/lib-gpg.sh | |
parent | t5323: test cases for git-pack-redundant (diff) | |
download | tgif-301117764041101ae228e8e33c12c0b232b06408.tar.xz |
pack-redundant: delay creation of unique_objects
Instead of initializing unique_objects in `add_pack()`, copy from
all_objects in `cmp_two_packs()`, when unwanted objects are removed from
all_objects.
This will save memory (no allocate memory for alt-odb packs), and run
`llist_sorted_difference_inplace()` only once when removing ignored
objects and removing objects in alt-odb in `scan_alt_odb_packs()`.
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-gpg.sh')
0 files changed, 0 insertions, 0 deletions