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

Re: [PATCH] Fix in Git.pm cat_blob crashes on large files

From
Jeff King <peff@peff.net>
Date
Feb 22, 2013, 15:38 UTC
Message-ID
<20130222153801.GA15318@sigill.intra.peff.net>
In-Reply-To
<CAMB+bf+RyerXP3VP26KJM7wtVKOup15AeRpEewwKJx3=bL9+hQ@mail.gmail.com>
On Fri, Feb 22, 2013 at 07:11:54AM -0800, Joshua Clayton wrote:
Show 15 quoted lines
> running git svn fetch on a remote repository (yes I know there are a
> lot of possible outside variables, including network latency)
> Code with 1024 reads and 64k writes:
> 
> real    75m19.906s
> user    16m43.919s
> sys     29m16.326s
> 
> Code with 1024 reads and 1024 writes:
> 
> real    71m21.006s
> user    12m36.275s
> sys     24m26.112s
> 
> ...so the simpler code wins the trivial test.

Interesting; I'd have expected no change or a slight win for your version, which makes me wonder if the outside variables are dominating. I wonder what 64K/64K would look like.

> I would say go with it.
> Should I resubmit?
Yes, please.
-Peff
Previous: Joshua Clayton
Message 6 of 6 in “Fix in Git.pm cat_blob crashes on large files”
  1. Fix in Git.pm cat_blob crashes on large filesJoshua Clayton, Feb 21, 2013
  2. Jeff KingFeb 21, 2013
  3. Joshua ClaytonFeb 21, 2013
  4. Jeff KingFeb 21, 2013
  5. Joshua ClaytonFeb 22, 2013
  6. Jeff KingFeb 22, 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.