RFR: 8316426: Optimization for HexFormat.formatHex [v10]

Claes Redestad redestad at openjdk.org
Thu Oct 12 14:03:38 UTC 2023


On Fri, 6 Oct 2023 17:06:08 GMT, Shaojin Wen <duke at openjdk.org> wrote:

>> In the improvement of @cl4es PR #15591, the advantages of non-lookup-table were discussed.
>> 
>> But if the input is byte[], using lookup table can improve performance.
>> 
>> For HexFormat#formatHex(Appendable, byte[]) and HexFormat#formatHex(byte[]), If the length of byte[] is larger, the performance of table lookup will be improved more obviously.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Not ByteArrayLittleEndian

Yes, I think this looks fine. Thank you for your patience.

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

PR Comment: https://git.openjdk.org/jdk/pull/15768#issuecomment-1759644549


More information about the core-libs-dev mailing list