http://bugs.winehq.org/show_bug.cgi?id=30148
--- Comment #17 from julusp@gmail.com 2012-04-06 19:34:00 CDT --- Heaviest usage (map_file_into_view):
In source code: dlls/ntdll/virtual.c:885: if (mmap( (char *)view->base + start, size, prot, flags, fd, offset ) != (void *)-1)
In (de)assembly: +0x1cf calll DYLD-STUB$$mmap$UNIX2003
I even tryied rejected patch from 2010 by Charles Davis which uses old mmap instead of mmap$UNIX2003 but no speed change.
also map_file_into_view and wine_annon_mmap calls are the slowest ones (25-150ms) (mmap call)
Is there any way of disabling mmap usage in wine or some kind of workaround around this issue?