<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 13, 2015 at 7:38 PM, Augie Fackler <span dir="ltr"><<a href="mailto:raf@durin42.com" target="_blank">raf@durin42.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Sep 12, 2015 at 04:56:12PM -0700, Gregory Szorc wrote:<br>
> # HG changeset patch<br>
> # User Gregory Szorc <<a href="mailto:gregory.szorc@gmail.com">gregory.szorc@gmail.com</a>><br>
> # Date 1442099477 25200<br>
> #      Sat Sep 12 16:11:17 2015 -0700<br>
> # Node ID 046c9fd2a75c7b5beca3e4ae04c1ced382530c44<br>
> # Parent  9b0f250a7ac06af053725d735aa551eed9d3e66b<br>
> revlog: optionally cache the full text when adding revisions<br>
<br>
</span>queued, very nice wins<br></blockquote><div><br></div><div>I was doing some performance analysis on my Windows 10 machine (no VM, SSD, NTFS) and this patch has a drastic impact.<br><br></div><div>Applying just the first 100,000 changesets of a gzip bundle of mozilla-central went from 90-110s to 16.5-17.0s. That's a 5x speedup!<br><br></div><div>My takeaway is [re?]opening files [for writing?] in rapid succession isn't very efficient on Windows. I know people like to knock I/O on Windows. But I didn't think it was this bad. Part of me suspects we (possibly Python) is doing something really sub-optimal.<br><br>FWIW, filelog writing during unbundle appears to suffer from similar slowdowns on Windows. I'll keep exploring...<br></div></div></div></div>