Files
git/reftable
Patrick Steinhardt 2d71a1d4a2 reftable/merged: remove unnecessary null check for subiters
Whenever we advance a subiter we first call `iterator_is_null()`. This
is not needed though because we only ever advance subiters which have
entries in the priority queue, and we do not end entries to the priority
queue when the subiter has been exhausted.

Drop the check as well as the now-unused function. This results in a
surprisingly big speedup:

    Benchmark 1: show-ref: single matching ref (revision = HEAD~)
      Time (mean ± σ):     138.1 ms ±   4.4 ms    [User: 135.1 ms, System: 2.8 ms]
      Range (min … max):   133.4 ms … 167.3 ms    1000 runs

    Benchmark 2: show-ref: single matching ref (revision = HEAD)
      Time (mean ± σ):     134.4 ms ±   4.2 ms    [User: 131.5 ms, System: 2.8 ms]
      Range (min … max):   130.0 ms … 164.0 ms    1000 runs

    Summary
      show-ref: single matching ref (revision = HEAD) ran
        1.03 ± 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:39 -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