On Wed, 13 Jan 2021 13:48:40 GMT, Claes Redestad wrote:
>> Сергей Цыпанов has updated the pull request with a new target base due to a
>> merge or a rebase. The incremental webrev excludes the unrelated changes
>> brought in by the merge/rebase. The pull request contains five additional
>> com
On Thu, 14 Jan 2021 12:48:18 GMT, Сергей Цыпанов
wrote:
>> Instead of allocating a copy of underlying array via
>> `CharArrayWriter.toCharArray()` and passing it to constructor of String
>> String str = new String(charArrayWriter.toCharArray());
>> we could call `toString()` method
>> String st
On Thu, 14 Jan 2021 11:48:16 GMT, Claes Redestad wrote:
>> @cl4es SB brings pessimization both for time and memory, try
>> `org.openjdk.bench.java.net.URLEncodeDecode`:
>> master
>> (count) (maxLength)
>> (mySeed) Mode Cnt Score
> Instead of allocating a copy of underlying array via
> `CharArrayWriter.toCharArray()` and passing it to constructor of String
> String str = new String(charArrayWriter.toCharArray());
> we could call `toString()` method
> String str = charArrayWriter.toString();
> decoding existing char[] witho