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

Re: [PATCH 09/13] drop objects larger than --blob-limit if specified

From
DLDavid Lang <david.lang@digitalinsight.com>
Date
Apr 8, 2007, 01:53 UTC
Message-ID
<Pine.LNX.4.63.0704071846340.25121@qynat.qvtvafvgr.pbz>
In-Reply-To
<7v1wixjfpo.fsf@assigned-by-dhcp.cox.net>
On Fri, 6 Apr 2007, Junio C Hamano wrote:
Show 25 quoted lines
> Linus Torvalds <torvalds@linux-foundation.org> writes:
>
>> On Fri, 6 Apr 2007, Dana How wrote:
>
> And I agree with Nico that rollback after a failed write beyond
> the boundary may not work correctly, so if we really want to do
> this safely and sanely while satisfying Dana's desire to have a
> hard limit, I think something like this is needed:
>
> - use "starting offset" to decide when to split;
>
> - introduce a "hard limit", perhaps optionally, to make sure
>   that the result of writing out a packfile does not overstep
>   that limit (i.e. the last object written below the "starting
>   offset limit" might make the pack go over 700MB).
>
> which means you would specify 600 as starting offset limit and
> 680 (or something like that) as the hard tail offset limit
>
>> Again, *in*practice*, for any sane situation, if you want to fit things on
>> a CD-ROM, just give a limit of 600MB, and I can pretty much guarantee that
>> you'll see a slop of just a percent or two for any realistic setup. And if
>> it goes up to 660MB, you'll still fit on any CD.
>
> if you really care the result fits on a CD.

there are going to be cases whereeyou have a fixed size, but would really like to stream things rather then write a temp file and then send that (one example of wanting to stream things, but without the size cap is the network pull where we atart sending things before we've finished figuring out the details of what we are going to send). with the appropriately sized buffer you could stream to a CD burner for example, and while this may not make a huge difference in the time taken to make the CD, it will save you a significant amount of disk I/O and buffer space that is now still populated by info that's more useful to the user.

David Lang
Previous: Junio C HamanoNext: Nicolas Pitre
Message 10 of 11 in “drop objects larger than --blob-limit if specified”
  1. 09/13 drop objects larger than --blob-limit if specifiedDana How, Apr 5, 2007
  2. Nicolas PitreApr 6, 2007
  3. Dana HowApr 6, 2007
  4. Nicolas PitreApr 6, 2007
  5. Linus TorvaldsApr 6, 2007
  6. Dana HowApr 6, 2007
  7. Nicolas PitreApr 6, 2007
  8. Linus TorvaldsApr 6, 2007
  9. Junio C HamanoApr 6, 2007
  10. David LangApr 8, 2007
  11. Nicolas PitreApr 6, 2007

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.