summaryrefslogtreecommitdiff
path: root/t/unit-tests
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-04-03 08:04:29 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-03 09:16:50 -0700
commitd51d8cc36831bdabbbcec8553a7e83d9f5a3be4d (patch)
treeca1c89a344a413031c106ee626af0652992d911c /t/unit-tests
parentcd75790707fe0068abff6729f0697e26c3630702 (diff)
reftable/block: avoid decoding keys when searching restart points
When searching over restart points in a block we decode the key of each of the records, which results in a memory allocation. This is quite pointless though given that records it restart points will never use prefix compression and thus store their keys verbatim in the block. Refactor the code so that we can avoid decoding the keys, which saves us some allocations. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests')
0 files changed, 0 insertions, 0 deletions