git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] clone: suggest index version 4 when the index is bigger than 512 KiB

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 19, 2013, 10:54 UTC
Message-ID
<CACsJy8CA8N1Hiz4JAXx++5BGEyYa6JnP3bhh++vtxb+6-ah-vA@mail.gmail.com>
In-Reply-To
<loom.20130219T113730-546@post.gmane.org>
On Tue, Feb 19, 2013 at 5:45 PM, Thomas Ackermann <th.acker@arcor.de> wrote:
Show 17 quoted lines
> Nguyễn Thái Ngọc Duy <pclouds <at> gmail.com> writes:
>
>>
>> I just realized that many of my big repos are still on index v2 while
>> v4 should reduce its size significantly (3.8M -> 2.9M for linux-2.6
>> and 25M -> 14M for webkit, for example). I wanted to propose index v4
>> as the new default version, because I guess that not many people
>> outside git <at> vger are aware of it, but perhaps this approach is less
>> drastic. It only suggest index v4 when the index size after clone hits
>> 512K limit.
>>
>
> Is V4 really recommended for general use?
> Default seems to be V3 and all I found in the docs is
> the coresponding release not describing V4 as "experimental".
> (I have repos with index files > 40MiB (!) which will shrink to
> approx. 20MiB with V4 so using V4 would be an interessting option for me.)

The default could be either v2 or v3, depending on whether you use some extra features. v4 is basically v3 with pathname compression. Yes, I think it's ok for general use.

-- 
Duy
Previous: Thomas AckermannNext: Junio C Hamano
Message 3 of 4 in “clone: suggest index version 4 when the index is bigger than 512 KiB”
  1. clone: suggest index version 4 when the index is bigger than 512 KiBNguyễn Thái Ngọc Duy, Feb 14, 2013
  2. Thomas AckermannFeb 19, 2013
  3. Duy NguyenFeb 19, 2013
  4. Junio C HamanoFeb 19, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.