Integrated: 8316426: Optimization for HexFormat.formatHex

Shaojin Wen duke at openjdk.org
Thu Oct 12 14:27:58 UTC 2023


On Fri, 15 Sep 2023 18:04:29 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.

This pull request has now been integrated.

Changeset: 93554314
Author:    wenshao <shaojin.wensj at alibaba-inc.com>
Committer: Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/935543146b23f22a73e14c6789cf73db7c3d466b
Stats:     82 lines in 3 files changed: 55 ins; 13 del; 14 mod

8316426: Optimization for HexFormat.formatHex

Reviewed-by: liach, rriggs

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

PR: https://git.openjdk.org/jdk/pull/15768


More information about the core-libs-dev mailing list