summaryrefslogtreecommitdiff
path: root/t/t4252-am-options.sh
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-04-14 17:35:11 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-04-16 12:38:59 +0900
commit0aca34e8269514ebb67676e0470a314615494ae8 (patch)
tree18835e8a3322ddb23f021b413aed31f907772949 /t/t4252-am-options.sh
parentpack-objects: shrink size field in struct object_entry (diff)
downloadtgif-0aca34e8269514ebb67676e0470a314615494ae8.tar.xz
pack-objects: shrink delta_size field in struct object_entry
Allowing a delta size of 64 bits is crazy. Shrink this field down to 20 bits with one overflow bit. If we find an existing delta larger than 1MB, we do not cache delta_size at all and will get the value from oe_size(), potentially from disk if it's larger than 4GB. Note, since DELTA_SIZE() is used in try_delta() code, it must be thread-safe. Luckily oe_size() does guarantee this so we it is thread-safe. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4252-am-options.sh')
0 files changed, 0 insertions, 0 deletions