Re: RFR: 8279833: Loop optimization issue in String.encodeUTF8_UTF16 [v3]

2022-01-11 Thread Alan Bateman
On Tue, 11 Jan 2022 13:09:07 GMT, Claes Redestad wrote: >> In `String.encodeUTF8_UTF16`, making the `char c` local to each loop helps >> the performance of the method by helping C2 optimize each individual loop >> better. >> >> Results on the updated micros: >> 19-b04: >> >> Benchmark

Re: RFR: 8279833: Loop optimization issue in String.encodeUTF8_UTF16 [v3]

2022-01-11 Thread Claes Redestad
> In `String.encodeUTF8_UTF16`, making the `char c` local to each loop helps > the performance of the method by helping C2 optimize each individual loop > better. > > Results on the updated micros: > 19-b04: > > Benchmark (charsetName) Mode Cnt Score > Error