Re: [PATCH 07/11] pack-objects: move in_pack out of struct object_entry
- From
Jeff King <peff@peff.net>
- Date
- Mar 1, 2018, 14:49 UTC
- Message-ID
- <20180301144942.GA837@sigill.intra.peff.net>
- In-Reply-To
- <20180301091052.32267-8-pclouds@gmail.com>
On Thu, Mar 01, 2018 at 04:10:48PM +0700, Nguyễn Thái Ngọc Duy wrote:
Show 7 quoted lines
> Instead of using 8 bytes (on 64 bit arch) to store a pointer to a > pack. Use an index isntead since the number of packs should be > relatively small. > > This limits the number of packs we can handle to 256 (still > unreasonably high for a repo to work well). If you have more than 256 > packs, you'll need an older version of Git to repack first.
I overall like the direction of this series, but I think this one is just too much. While you definitely shouldn't have a ton of packs, this leaves the user with no real escape hatch. And 256 isn't actually that many packs.
-Peff