mbox series

[0/1] unpack-objects: low memory footprint for get_data() in dry_run mode

Message ID cover.1653015534.git.chiyutianyi@gmail.com (mailing list archive)
Headers show
Series unpack-objects: low memory footprint for get_data() in dry_run mode | expand

Message

Han Xin May 20, 2022, 3:05 a.m. UTC
This patch teaches "git unpack-objects" to use a lower memory footprint
for "get_data()" in dry-run mode since the returned data is not used.

This patch is separeted from "[PATCH v12 0/8] unpack-objects: support
streaming blobs to disk"[1] because it has less impact and less controversy
on existing ones.

1. https://lore.kernel.org/git/cover-v12-0.8-00000000000-20220329T135446Z-avarab@gmail.com/

Han Xin (1):
  unpack-objects: low memory footprint for get_data() in dry_run mode

 builtin/unpack-objects.c        | 34 ++++++++++++++++++---------
 t/t5351-unpack-large-objects.sh | 41 +++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 11 deletions(-)
 create mode 100755 t/t5351-unpack-large-objects.sh