[PATCH 0 of 2] atomic writes

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Jul 13 02:43:31 CDT 2010


On 13 Jul 2010, at 02:47, Mads Kiilerich wrote:

> Is there a particular reason why we don't use atomictempfile in more places?

Wouldn't your patch have scalability problems? That is, if you modify one byte of a 1GB file, your patch would cause the entire 1GB file to be rewritten. It seems to me that this would be best combined with a heuristic: say, the file is smaller than X and has a link count of 1.

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100713/e9ddb83a/attachment.bin>


More information about the Mercurial-devel mailing list