Closed heroesleo65 closed 3 years ago
Result of string does have length equal to given argument maxLength in DefaultProgressBarRenderer.render always. We can use this and create StringBuilder with initial size of array equal to maxLength
maxLength
DefaultProgressBarRenderer.render
StringBuilder
It might not be exactly the same as maxLength (various reasons, e.g. East Asian chars). But this fix is good for the performance. Thanks!
Result of string does have length equal to given argument
maxLength
inDefaultProgressBarRenderer.render
always. We can use this and createStringBuilder
with initial size of array equal tomaxLength