]> git.ipfire.org Git - thirdparty/git.git/commit
odb: move MRU list of packfiles into `struct packfile_store`
authorPatrick Steinhardt <ps@pks.im>
Tue, 23 Sep 2025 10:17:04 +0000 (12:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Sep 2025 18:53:49 +0000 (11:53 -0700)
commitfe835b0ca0ba4d6968cd2d1f824c178547934792
treec56342bd6b6a814c36619b481c3cbef1d7829977
parent14aaf5c9d889a4988ffc64b39fe38bd19b930a50
odb: move MRU list of packfiles into `struct packfile_store`

The object database tracks the list of packfiles in most-recently-used
order, which is mostly used to favor reading from packfiles that contain
most of the objects that we're currently accessing. With the
introduction of the `struct packfile_store` we have a better place to
host this list though.

Move the list accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
odb.c
odb.h
packfile.c
packfile.h