kernelbase: Reuse the previous iteration's pos and sortkey state if possible in find_...
commit4d0d7e49b9b33bba023ba67add84486ba4cc8efd
authorTorge Matthies <tmatthies@codeweavers.com>
Mon, 6 Feb 2023 04:51:54 +0000 (6 05:51 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 23 Feb 2023 20:43:59 +0000 (23 21:43 +0100)
tree31c45b4aabfa275a491399b28abbf1378d80b58a
parent01146582cc56e399a3313e4bad6f367c7d33c503
kernelbase: Reuse the previous iteration's pos and sortkey state if possible in find_substring.

We don't have to reset pos and the sortkey state for every iteration of
the for-loop. In most cases the previous iteration's values are still
valid, and can be re-used, skipping a lot of duplicate work.

Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
dlls/kernelbase/locale.c