From: Jeff King Date: Mon, 23 Feb 2026 14:08:47 GMT Subject: Re: [PATCH v2 00/18] midx: incremental MIDX/bitmap layer compaction Message-ID: <20260223140847.GB271392@coredump.intra.peff.net> In-Reply-To: On Fri, Feb 20, 2026 at 02:24:25PM -0800, Junio C Hamano wrote: > Taylor Blau writes: > > > [Note to the maintainer: this is based on 'master' with my > > 'tb/midx-write-corrupt-checksum-fix' merged in and should produce zero > > conflicts when applied on top.] > > > > This is a reroll of my series to implement MIDX layer compaction > > adjusted in response to reviewer feedback. > > Haven't seen a lot happen since the end of last month or so. > Anything left to do here? Sorry, I promised Taylor I would review it and I have been dragging my feet. I just read through the whole series, and didn't find anything that hadn't already been brought up. The scariest / most complicated bits are: 1. Dropping the sort-order requirement for midx pack lists in patch 10. But I think the approach with the version bump is the maximally conservative one, and I feel good about that. IIRC we discussed previously the possibility of using new chunks to give the alternate ordering, but I think this keeps the complexity in the code to a minimum. 2. The actual compaction bits in the final two patches. I didn't see anything wrong here, but this is exactly the kind of spot where I think review fails, because you don't realize the corner case that you missed (speaking from experience with midx and bitmap code). But the nice thing here is that it should be quite unlikely to cause a regression if you're not using compaction. As this is mostly a building block for "part 3" that starts doing compaction as part of a broader repacking strategy, I think it is OK to consider it somewhat-experimental, build the next layer, and then eventually let it see more exercise in a production environment. That's how we've traditionally found those corner cases, and I think trying to spend more time staring at it in review is not likely to produce more insights. There were a couple minor issues brought up in review, like out-dated comments and the u32_add interface. So I think we might need a v3 with a few touch-ups, but that's it. -Peff