dbghelp: Speed up pool_alloc performance. Patch by Eric Pouech.
markus.amsler at oribi.org
Sun May 6 22:41:16 CDT 2007
Current dbghelp has some performance problem if big debug files are
involved (10MB or so)
mem1 time1 mem2 time2
current 54M 4.5s 146M 115s
after dbghelp 54M 4.5s 167M 27s
after dbghelp 52M 4.5s 92M 17s
I measured memory consupmtion and time it took for looking for an
unknown symbol while WoW was in the debugger loaded. mem1/time1 is
without big debug file. mem2/time2 is with big debug file.
dbghelp increases memory consupmtion, because pool_realloc leaks more
dbghelp minimizes the memory leaks in pool_realloc and speeds up
With the current pool implementation it's not possible to realloc memory
without leaks. So I just minimize them.
dlls/dbghelp/storage.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1313 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070507/785b2a5a/f63eaf50955b9b3bce1a5a1cb949e0f202044d49.bin
More information about the wine-patches