This fixes a performance regression introduced by 67574e4440ac4d9786e52a669b40197d2a4cb505.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46266 Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com --- dlls/advapi32/registry.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
Akihiro Sagawa sagawa.aki@gmail.com writes:
This fixes a performance regression introduced by 67574e4440ac4d9786e52a669b40197d2a4cb505.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46266 Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com
dlls/advapi32/registry.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
There shouldn't be any reason to store the cache in the registry, a simple process-local list would be faster.
Also resource lookup should be fast enough to not require caching, so you could simply store a LRU list of loaded modules to avoid redundant load/unload.