From: Ben Hoskings Date: Tue, 17 Feb 2009 15:03:19 GMT Subject: Re: [RFC/PATCH] Proof-of-concept streamed hashing, demoed in `git hash-object` 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: > Hi folks, > > This patch adds a proof-of-concept implementation of streaming SHA1 > calculation in sha1_file.c, as demoed with `git hash-object 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