> 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.
温绍锦 has updated the pull request incrementally with one additional commit since the last revision: remove digitPair(int) and fix comment ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15768/files - new: https://git.openjdk.org/jdk/pull/15768/files/530ca013..807cd956 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15768&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15768&range=00-01 Stats: 10 lines in 1 file changed: 0 ins; 9 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15768.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15768/head:pull/15768 PR: https://git.openjdk.org/jdk/pull/15768