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

2023-10-12 Thread Claes Redestad
On Fri, 6 Oct 2023 17:06:08 GMT, Shaojin Wen 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#for

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

2023-10-06 Thread 温绍锦
> 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 pe