diff options
| author | Patrick Steinhardt <ps@pks.im> | 2023-12-11 10:08:12 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-12-11 07:23:17 -0800 |
| commit | c0cadb0576d4920915eb3bd38a7d1abfcbd25f98 (patch) | |
| tree | 6ab32c33c20cf845b16325bc36ee2bedaa8082b4 /exec-cmd.c | |
| parent | reftable/block: introduce macro to initialize `struct block_iter` (diff) | |
| download | git-c0cadb0576d4920915eb3bd38a7d1abfcbd25f98.tar.gz git-c0cadb0576d4920915eb3bd38a7d1abfcbd25f98.zip | |
reftable/block: reuse buffer to compute record keys
When iterating over entries in the block iterator we compute the key of
each of the entries and write it into a buffer. We do not reuse the
buffer though and thus re-allocate it on every iteration, which is
wasteful.
Refactor the code to reuse the buffer.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'exec-cmd.c')
0 files changed, 0 insertions, 0 deletions
