Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

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

From: Ben Hoskings <hidden>
Date: 2016-06-15 22:46:13

On 18/02/2009, at 12:31 AM, Ben Hoskings wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help