Re: 回复:Adding appendHex method to StringBuilder

2023-10-09 Thread Roger Riggs
10月2日(星期一) 20:46 收件人:Mark Reinhold ; Claes Redestad 抄 送:core-libs-dev@openjdk.org 主 题:回复:Adding appendHex method to StringBuilder Using String Template FMT has better performance and better code readability. But String Template does not yet support for/while/if/switch

回复:Adding appendHex method to StringBuilder

2023-10-02 Thread 温绍锦(高铁)
. -- 发件人:温绍锦(高铁) 发送时间:2023年10月2日(星期一) 20:46 收件人:Mark Reinhold ; Claes Redestad 抄 送:core-libs-dev@openjdk.org 主 题:回复:Adding appendHex method to StringBuilder Using String Template FMT has better performance and better code readability. But String Template does not yet support for

回复:Adding appendHex method to StringBuilder

2023-10-02 Thread 温绍锦(高铁)
Using String Template FMT has better performance and better code readability. But String Template does not yet support for/while/if/switch. Is there any plan to enhance String Template to support for/while/if/switch? The following scenarios cannot be implemented using String.format or String Tem

回复:Adding appendHex method to StringBuilder

2023-09-30 Thread 温绍锦(高铁)
Using the new method, the performance is improved by approximately 26% when running on MaxBookPro M1 Max. ``` Benchmark Mode Cnt Score Error Units StringBuilders.appendHex8 avgt 15 15.259 ? 0.121 ns/op (+26.19%) StringBuilders.appendHexCombine8 avgt 15 19.256 ? 0.059 ns/op ``` The test code is as