Reduce the odds of re-allocation by AsciiFlattener

This commit is contained in:
Viktor Lofgren 2023-06-12 17:42:31 +02:00 committed by Viktor
parent 186a02acfd
commit ffcbc6c1c9

View File

@ -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());