diff options
author | Christian Couder <christian.couder@gmail.com> | 2018-08-16 08:13:13 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-16 10:56:44 -0700 |
commit | fe0ac2fb7f8e87d37ef83dcee2d93901d58d8277 (patch) | |
tree | 37f990bd4446b96bdb41d09a618576ae89a20b30 /compat/obstack.h | |
parent | pack-objects: move tree_depth into 'struct packing_data' (diff) | |
download | tgif-fe0ac2fb7f8e87d37ef83dcee2d93901d58d8277.tar.xz |
pack-objects: move 'layer' into 'struct packing_data'
This reduces the size of 'struct object_entry' from 88 bytes
to 80 and therefore makes packing objects more efficient.
For example on a Linux repo with 12M objects,
`git pack-objects --all` needs extra 96MB memory even if the
layer feature is not used.
Helped-by: Jeff King <peff@peff.net>
Helped-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/obstack.h')
0 files changed, 0 insertions, 0 deletions