mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
6620f9134c
Do the same optimization as in the preceding commit, but this time for `reftable_record_copy()`. While not as noticeable, it still results in a small speedup when iterating over 1 million refs: Benchmark 1: show-ref: single matching ref (revision = HEAD~) Time (mean ± σ): 114.0 ms ± 3.8 ms [User: 111.1 ms, System: 2.7 ms] Range (min … max): 110.9 ms … 144.3 ms 1000 runs Benchmark 2: show-ref: single matching ref (revision = HEAD) Time (mean ± σ): 112.5 ms ± 3.7 ms [User: 109.5 ms, System: 2.8 ms] Range (min … max): 109.2 ms … 140.7 ms 1000 runs Summary show-ref: single matching ref (revision = HEAD) ran 1.01 ± 0.05 times faster than show-ref: single matching ref (revision = HEAD~) Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
basics.c | ||
basics.h | ||
basics_test.c | ||
block.c | ||
block.h | ||
block_test.c | ||
blocksource.c | ||
blocksource.h | ||
constants.h | ||
dump.c | ||
error.c | ||
generic.c | ||
generic.h | ||
iter.c | ||
iter.h | ||
LICENSE | ||
merged.c | ||
merged.h | ||
merged_test.c | ||
pq.c | ||
pq.h | ||
pq_test.c | ||
publicbasics.c | ||
reader.c | ||
reader.h | ||
readwrite_test.c | ||
record.c | ||
record.h | ||
record_test.c | ||
refname.c | ||
refname.h | ||
refname_test.c | ||
reftable-blocksource.h | ||
reftable-error.h | ||
reftable-generic.h | ||
reftable-iterator.h | ||
reftable-malloc.h | ||
reftable-merged.h | ||
reftable-reader.h | ||
reftable-record.h | ||
reftable-stack.h | ||
reftable-tests.h | ||
reftable-writer.h | ||
stack.c | ||
stack.h | ||
stack_test.c | ||
system.h | ||
test_framework.c | ||
test_framework.h | ||
tree.c | ||
tree.h | ||
tree_test.c | ||
writer.c | ||
writer.h |