RFR: 8316426: Optimization for HexFormat.formatHex [v9]
温绍锦
duke at openjdk.org
Fri Oct 6 17:19:16 UTC 2023
On Fri, 6 Oct 2023 14:20:13 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> FWIW I'll not review or sponsor any PRs that use `ByteArrayLittleEndian` for trivial `byte[]` writes until there's been a thorough analysis of why this helps and shown that JITs can't be expected to generate code that is as optimal.
Thanks, I received your opinion and I have removed ByteArrayLittleEndian.
Such optimization should be done by JIT. It seems that this optimization is called SuperWord Level Parallelism (SLP). Currently, HotSpot C2 has only completed the loop version and not the linear version. Improvements require JIT experts to submit patches.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15768#issuecomment-1751137676
More information about the core-libs-dev
mailing list