[PATCH] ntdll: add mmap caching
michael.blumenkrantz at gmail.com
Sat Jul 28 12:51:56 CDT 2012
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7728 bytes
Desc: not available
More information about the wine-patches