[PATCH] Increase performance on Windows by up to 2x

Bryan O'Sullivan bos at serpentine.com
Thu Mar 26 13:24:22 CDT 2009


This patch replaces the util_win32 module's posixfile_nt class with a C
wrapper that lets Mercurial use Python's normal file handling code. That
code uses buffered I/O for reads and writes, so is substantially faster in
many cases than the existing code which goes through the win32 I/O APIs. In
case the C extension is not available, we still fall back to the current
code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial-devel/attachments/20090326/ef0bd1a2/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winperf.patch
Type: application/octet-stream
Size: 6921 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090326/ef0bd1a2/attachment.obj 


More information about the Mercurial-devel mailing list