Commit fe0ac2fb authored by Committed by Junio C Hamano
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 <email@example.com> Helped-by: Duy Nguyen <firstname.lastname@example.org> Signed-off-by: Christian Couder <email@example.com> Signed-off-by: Junio C Hamano <firstname.lastname@example.org>
Showing with 28 additions and 6 deletions