[jdk17u-dev] RFR: 8268231: Aarch64: Use Ldp in intrinsics for String.compareTo
Andrew Dinn
adinn at openjdk.java.net
Fri Mar 4 10:19:17 UTC 2022
On Thu, 10 Feb 2022 14:21:43 GMT, Dmitry Chuyko <dchuyko at openjdk.org> wrote:
>> Original patch applies cleanly.
>>
>> Benchmark results of test/micro/org/openjdk/bench/java/lang/StringCompareToDifferentLength.java correspond to original issue, 10-25% 17u improvements on Graviton 2 for long enough strings (72+ chars).
>>
>> Testing: tier1, tier2 (aarch64).
>
> I think it is actually a win for many actual aarch64 implementations. For example here is a chart for L-L string comparison on A72 (RPi4) up to length 128. Starting from size 72 there is a constant 16-17% time reduction. If we go to really long strings there which can be considred a rare use, the improvement grows to 38% for size 256 and even over 50% for size 512.
> 
@dchuyko @phohensee Has this patch been approved by one of the maintainers?
-------------
PR: https://git.openjdk.java.net/jdk17u-dev/pull/91
More information about the jdk-updates-dev
mailing list