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

Re: [RFC/PATCH] Proof-of-concept streamed hashing, demoed in `git hash-object`

From
Ben Hoskings <ben@hoskings.net>
Date
Feb 17, 2009, 15:03 UTC
Message-ID
<35E0E6CA-22F0-4995-B942-46B630146506@hoskings.net>
In-Reply-To
<0984029E-57D0-4EFA-A060-E0B6FFA77D58@hoskings.net>
On 18/02/2009, at 12:31 AM, Ben Hoskings wrote:
Show 7 quoted lines
> Hi folks,
>
> This patch adds a proof-of-concept implementation of streaming SHA1  
> calculation in sha1_file.c, as demoed with `git hash-object <large  
> input file>`. Instead of the command's memory footprint being equal  
> to the input file's size, this caps it at SHA1_CHUNK_SIZE (currently  
> 64MB).

Argh, sorry—the patch was somehow corrupted; the single spaces at the start of the surrounding lines of each hunk became double spaces. I'm not sure what's happening there.

Here's the commit on GitHub for anyone who would like to apply the patch.

http://github.com/benhoskings/git/commit/33b3d26ca40becf00f57008ef9d215d9287fb8e8

Cheers Ben

Previous: Ben HoskingsNext: Jeff King
Message 2 of 3 in “Proof-of-concept streamed hashing, demoed in `git hash-object`”
  1. Proof-of-concept streamed hashing, demoed in `git hash-object`Ben Hoskings, Feb 17, 2009
  2. Ben HoskingsFeb 17, 2009
  3. Jeff KingFeb 17, 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.