git/reftable
Patrick Steinhardt 87ff723018 reftable/record: convert old and new object IDs to arrays
In 7af607c58d (reftable/record: store "val1" hashes as static arrays,
2024-01-03) and b31e3cc620 (reftable/record: store "val2" hashes as
static arrays, 2024-01-03) we have converted ref records to store their
object IDs in a static array. Convert log records to do the same so that
their old and new object IDs are arrays, too.

This change results in two allocations less per log record that we're
iterating over. Before:

    HEAP SUMMARY:
        in use at exit: 13,473 bytes in 122 blocks
      total heap usage: 8,068,495 allocs, 8,068,373 frees, 401,011,862 bytes allocated

After:

    HEAP SUMMARY:
        in use at exit: 13,473 bytes in 122 blocks
      total heap usage: 6,068,489 allocs, 6,068,367 frees, 361,011,822 bytes allocated

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-03-05 09:10:06 -08:00
..
LICENSE
…
basics.c reftable/stack: use `size_t` to track stack length 2024-02-06 12:10:08 -08:00
basics.h reftable/stack: use `size_t` to track stack length 2024-02-06 12:10:08 -08:00
basics_test.c
…
block.c reftable/record: decode keys in place 2024-03-04 10:19:49 -08:00
block.h reftable/record: decode keys in place 2024-03-04 10:19:49 -08:00
block_test.c reftable: introduce macros to allocate arrays 2024-02-06 12:10:08 -08:00
blocksource.c reftable: introduce macros to allocate arrays 2024-02-06 12:10:08 -08:00
blocksource.h
…
constants.h
…
dump.c
…
error.c
…
generic.c
…
generic.h
…
iter.c reftable/merged: remove unnecessary null check for subiters 2024-03-04 10:19:39 -08:00
iter.h reftable/merged: remove unnecessary null check for subiters 2024-03-04 10:19:39 -08:00
merged.c reftable/merged: avoid duplicate pqueue emptiness check 2024-03-04 10:19:40 -08:00
merged.h reftable/merged: make `merged_iter` structure private 2024-03-04 10:19:30 -08:00
merged_test.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
pq.c reftable: allow inlining of a few functions 2024-03-04 10:19:49 -08:00
pq.h reftable: allow inlining of a few functions 2024-03-04 10:19:49 -08:00
pq_test.c reftable/merged: make subiters own their records 2024-03-04 10:19:39 -08:00
publicbasics.c reftable: introduce macros to allocate arrays 2024-02-06 12:10:08 -08:00
reader.c Merge branch 'ps/reftable-iteration-perf' 2024-02-26 18:10:24 -08:00
reader.h
…
readwrite_test.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
record.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
record.h reftable: allow inlining of a few functions 2024-03-04 10:19:49 -08:00
record_test.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
refname.c reftable: introduce macros to allocate arrays 2024-02-06 12:10:08 -08:00
refname.h
…
refname_test.c
…
reftable-blocksource.h
…
reftable-error.h
…
reftable-generic.h
…
reftable-iterator.h
…
reftable-malloc.h
…
reftable-merged.h reftable/stack: use `size_t` to track stack length 2024-02-06 12:10:08 -08:00
reftable-reader.h
…
reftable-record.h reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
reftable-stack.h
…
reftable-tests.h
…
reftable-writer.h
…
stack.c Merge branch 'ps/reftable-styles' 2024-02-12 13:16:10 -08:00
stack.h reftable/stack: index segments with `size_t` 2024-02-06 12:10:08 -08:00
stack_test.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
system.h
…
test_framework.c
…
test_framework.h
…
tree.c reftable: introduce macros to allocate arrays 2024-02-06 12:10:08 -08:00
tree.h
…
tree_test.c
…
writer.c Merge branch 'ps/reftable-styles' 2024-02-12 13:16:10 -08:00
writer.h
…