https://bugs.winehq.org/show_bug.cgi?id=50923
--- Comment #2 from Torge Matthies openglfreak@googlemail.com --- (In reply to Torge Matthies from comment #0)
Created attachment 69739 [details] Patch that adds a single-entry sortguid cache to sortkey_compare
Wine-Staging patchset libs-Unicode_Collation makes CompareStringEx far slower than before. This is because the sortkey_compare function added by the last patch and used by CompareStringEx makes a call to get_language_sort, which is not exactly cheap (it reads from the registry which involves server calls).
A small patch that adds a simple cache for the last used sortguid makes the search function fast again.
I sent a patch to the mailing list, see https://source.winehq.org/patches/data/203183