RFR: 6714245: [Col] Collator - Faster Comparison for identical strings.

Justin Lu jlu at openjdk.org
Thu May 11 21:16:32 UTC 2023


On Thu, 11 May 2023 20:37:11 GMT, Naoto Sato <naoto 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.
>
> LGTM. `noreg-perf` issue label might fit better for this

@naotoj ah good to know, I was looking for a noreg-"optimization" or something along those lines and ended up settling for cleanup since I didn't know perf was short for performance.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13938#issuecomment-1544688899


More information about the core-libs-dev mailing list