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

Re: [PATCH 1/2] Add an (optional, since expensive) test for >2g clones

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 5, 2009, 16:58 UTC
Message-ID
<alpine.DEB.1.00.0903051754260.6524@intel-tinevez-2-302>
In-Reply-To
<20090305164153.GD4213@coredump.intra.peff.net>
Hi,
On Thu, 5 Mar 2009, Jeff King wrote:
Show 12 quoted lines
> On Thu, Mar 05, 2009 at 05:05:09PM +0100, Johannes Schindelin wrote:
> 
> > +	(while test $i -le $blobcount
> > +	 do
> > +		printf "Generating blob $i/$blobcount\r" >&2 &&
> > +		printf "blob\nmark :$i\ndata $blobsize\n" &&
> > +		#test-genrandom $i $blobsize &&
> > +		printf "%-${blobsize}s" $i &&
> 
> Leftover cruft using genrandom? (I'm guessing you tried random at first
> to avoid compression, but I think your pack.compression=0 technique is
> more sensible).

Actually, I left it in on purpose. Yes, it happens to work right now, as the packs are built with 0 compression and with 0 deltification.

However, there might be a day when we cannot guarantee anymore that a single number padded with spaces to a certain width really makes the pack grow by that many bytes. Then we would need something like test-genrandom (which is substantially slower, though).

Interesting random note: it took me quite a while to figure out that both pack.compression and pack.depth need to be set to 0. In hindsight, it is obvious, but that does not really help the time I lost due to Windows' slowness.

Ciao, Dscho

Previous: Jeff KingNext: Jeff King
Message 4 of 10 in “2GB fixes for Windows”
  1. 0/2 2GB fixes for WindowsJohannes Schindelin, Mar 5, 2009
  2. 1/2 Add an (optional, since expensive) test for >2g clonesJohannes Schindelin, Mar 5, 2009
  3. Jeff KingMar 5, 2009
  4. Johannes SchindelinMar 5, 2009
  5. Jeff KingMar 5, 2009
  6. Junio C HamanoMar 5, 2009
  7. 1/2 Add an (optional, since expensive) test for >2gb clonesJohannes Schindelin, Mar 6, 2009
  8. 2/2 MinGW: 64-bit file offsetsJohannes Schindelin, Mar 6, 2009
  9. 2/2 MinGW: 64-bit file offsetsJohannes Schindelin, Mar 5, 2009
  10. Johannes SixtMar 5, 2009

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.