Re: RFR: 8338937: Optimize the string concatenation of ClassDesc [v2]

2024-09-03 Thread Chen Liang
On Tue, 27 Aug 2024 11:52:38 GMT, Shaojin Wen wrote: >> The string concatenation of java.base module is implemented based on >> StringBuilder, which will result in extra object allocation and slow >> performance. We can solve this problem by using String.concat method and >> StringConcatHelper

Re: RFR: 8338937: Optimize the string concatenation of ClassDesc [v2]

2024-08-27 Thread Shaojin Wen
On Sun, 25 Aug 2024 21:41:11 GMT, Shaojin Wen wrote: >> Well, `Class​::descriptorString()` is referenced from the  >> `ReferenceClassDescImpl` creation code in `ConstantUtils`: >> https://github.com/openjdk/jdk/blob/5671f836039ef1683e3e9ce5b7cf0fa2f1860e2d/src/java.base/share/classes/jdk/internal

Re: RFR: 8338937: Optimize the string concatenation of ClassDesc [v2]

2024-08-27 Thread Shaojin Wen
> The string concatenation of java.base module is implemented based on > StringBuilder, which will result in extra object allocation and slow > performance. We can solve this problem by using String.concat method and > StringConcatHelper to provide concat method. > > for example, > > * use "+