Reduce the odds of re-allocation by AsciiFlattener
This commit is contained in:
parent
186a02acfd
commit
ffcbc6c1c9
@ -8,7 +8,7 @@ public class AsciiFlattener {
|
||||
return s;
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder(s.length());
|
||||
StringBuilder sb = new StringBuilder(s.length() + 10);
|
||||
|
||||
int numCp = s.codePointCount(0, s.length());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user