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>
Showing
Please
register
or
sign in
to comment