RFR: 6714245: [Col] Collator - Faster Comparison for identical strings.
Roger Riggs
rriggs at openjdk.org
Thu May 11 20:26:37 UTC 2023
On Thu, 11 May 2023 18:27:28 GMT, Justin Lu <jlu at openjdk.org> wrote:
> Please review this PR which adds an initial equality check to `RuleBasedCollator.compare(String source, String target)`.
>
> This speeds up the operation for equal input Strings, as it bypasses Collator rule comparisons of each element for both of the input Strings.
It certainly seems like a win in all cases.
-------------
Marked as reviewed by rriggs (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/13938#pullrequestreview-1423380835
More information about the core-libs-dev
mailing list