Re: RFR: 8335366: Improve String.format performance with fastpath [v4]

2024-06-29 Thread Shaojin Wen
On Sat, 29 Jun 2024 17:41:47 GMT, David Schlosnagle wrote: >> src/java.base/share/classes/java/lang/StringFormat.java line 82: >> >>> 80: conv = format.charAt(off + 2); >>> 81: } >>> 82: } >> >> is it worth handling `width > 9`? >> >> Suggestion: >> >>

Re: RFR: 8335366: Improve String.format performance with fastpath [v4]

2024-06-29 Thread Shaojin Wen
> We need a String format solution with good performance. String Template was > once expected, but it has been removed. j.u.Formatter is powerful, but its > performance is not good enough. > > This PR implements a subset of j.u.Formatter capabilities. The performance is > good enough that it is