From: Taylor Blau Date: Tue, 03 Oct 2023 16:30:14 GMT Subject: Re: [PATCH] builtin/repack.c: avoid making cruft packs preferred Message-ID: In-Reply-To: <19d9aae08eab05c6b5dda4c2090236b1c3f62998.1696349955.git.me@ttaylorr.com> On Tue, Oct 03, 2023 at 12:27:51PM -0400, Taylor Blau wrote: > I've had this sitting in my patch queue for a while now. It's a > non-critical performance fix that avoids the repack/MIDX machinery from > ever choosing a cruft pack as preferred when writing a MIDX bitmap > without a given --preferred-pack. > > There is no correctness issue here, but choosing a pack with few/no > reachable objects means that our pack reuse mechanism will rarely kick > in, resulting in performance degradation. > > builtin/repack.c | 47 ++++++++++++++++++++++++++++++++++++++++- > t/t7704-repack-cruft.sh | 39 ++++++++++++++++++++++++++++++++++ > 2 files changed, 85 insertions(+), 1 deletion(-) Oops, I should have mentioned that this is meant to be applied on top of 'tb/multi-cruft-pack' to reduce the conflict resolution burden. Sorry about that. Thanks, Taylor