summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-04-10 14:12:40 +0200
committerJunio C Hamano <gitster@pobox.com>2026-05-15 04:50:45 +0900
commitc04907694601556de0ce862ad4f80fc55ec38c62 (patch)
tree18368669d6f8ca512526c0fa57b72878b1483d97 /t/t4013/diff.diff_initial..side
parent449650decf49b1fe5b1dac1c48dfb919e9b57b0d (diff)
odb/source-inmemory: convert to use oidtree
The in-memory source stores its objects in a simple array that we grow as needed. This has a couple of downsides: - The object lookup is O(n). This doesn't matter in practice because we only store a small number of objects. - We don't have an easy way to iterate over all objects in lexicographic order. - We don't have an easy way to compute unique object ID prefixes. Refactor the code to use an oidtree instead. This is the same data structure used by our loose object source, and thus it means we get a bunch of functionality for free. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions