]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: make the compaction factor configurable
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 May 2024 08:18:38 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2024 00:02:39 +0000 (17:02 -0700)
commitf663d34306d414bca27cf6b5dc7affb00e8603fe
treebc9bbb0beb771f18a52fbc8b49e486e1ee35685a
parentafbdbfae0b44efe470c6c7998822900c61f71e39
reftable: make the compaction factor configurable

When auto-compacting, the reftable library packs references such that
the sizes of the tables form a geometric sequence. The factor for this
geometric sequence is hardcoded to 2 right now. We're about to expose
this as a config option though, so let's expose the factor via write
options.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/constants.h
reftable/reftable-writer.h
reftable/stack.c
reftable/stack.h
reftable/stack_test.c