From: Enrico Weigelt Date: Tue, 05 Oct 2010 00:59:02 GMT Subject: Re: large files and low memory Message-ID: <20101005005902.GC2768@nibiru.local> In-Reply-To: * Shawn Pearce wrote: > Laziness. Git originally assumed it would only be used for smaller > source files written by humans. Its easier to write the code as a > single malloc'd buffer than to stream it. We'd like to fix it, but > its harder than it sounds. Today we copy the file into a buffer > before we deflate and compute the SHA-1 as this prevents us from > getting into a consistency error when the file is modified between > these two stages. hmm, perhaps copy it to a temporary file, if it's too large ? cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------