[PATCH] ntdll: add mmap caching

Michael Blumenkrantz michael.blumenkrantz at gmail.com
Sat Jul 28 12:51:56 CDT 2012


Hi,

Attached is a patch that I wrote a year ago with the help of Bernhard Loos
(jhgf). For various reasons, I didn't get around to submitting it until now.

This patch adds caching to NtMapViewOfSection() to reduce the frequency of
blocking server requests which occur, instead replacing them with lookups to a
wine rbtree, which is populated during NtCreateSection() and cleared during
close_handle(). While I don't have any performance statistics to show, this
should yield some definite benefits in nearly every modern game given that they
all repeatedly read mmapped sections of files.

Bernhard suggested to me, at the time of writing this, that there could be some
potential compatibility issues with regard to sharing, but I don't know nearly
enough about the internals here to speculate.

Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mmap-caching.patch
Type: text/x-patch
Size: 7728 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120728/3b8dd490/attachment.bin>


More information about the wine-patches mailing list