Files
git/reftable
Patrick Steinhardt 6620f9134c reftable/record: reuse refname when copying
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>
2024-03-04 10:19:49 -08:00
..
2021-10-08 10:45:48 -07:00
2021-10-08 10:45:48 -07:00
2024-01-23 13:45:27 -08:00
2021-12-23 12:28:34 -08:00
2021-10-08 10:45:48 -07:00
2024-01-23 13:45:27 -08:00
2024-02-12 13:16:10 -08:00
2024-02-12 13:16:10 -08:00
2024-01-23 13:45:27 -08:00
2024-01-23 13:45:27 -08:00
2024-02-12 13:16:10 -08:00
2024-01-23 13:45:27 -08:00