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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux