]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/reftable-reflog-iteration-perf'
authorJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2024 21:55:13 +0000 (14:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2024 21:55:13 +0000 (14:55 -0700)
commite8c1cda9a952d4ffce87976ef72f5ad6cc71c519
tree717ff492aa36756075f55d241b861e4ffd22a8b6
parentdc97afdcb93ca683bf73b4ae2ff028c161206617
parentfcacc2b161b095c99dfd4e0b05dcc1ed8ca80a62
Merge branch 'ps/reftable-reflog-iteration-perf'

The code to iterate over reflogs in the reftable has been optimized
to reduce memory allocation and deallocation.

Reviewed-by: Josh Steadmon <steadmon@google.com>
cf. <Ze9eX-aaWoVaqsPP@google.com>

* ps/reftable-reflog-iteration-perf:
  refs/reftable: track last log record name via strbuf
  reftable/record: use scratch buffer when decoding records
  reftable/record: reuse message when decoding log records
  reftable/record: reuse refnames when decoding log records
  reftable/record: avoid copying author info
  reftable/record: convert old and new object IDs to arrays
  refs/reftable: reload correct stack when creating reflog iter
refs/reftable-backend.c
reftable/block.c
reftable/record.c