[PATCH] advapi32: Implement RegLoadMUIString cache.
Alexandre Julliard
julliard at winehq.org
Fri Dec 14 09:49:21 CST 2018
Akihiro Sagawa <sagawa.aki at 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 at 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.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list