Permalink
Browse files

Initialize currentChunk StringBuilder's buffer with 1024 chars.

  • Loading branch information...
Flowdalic committed Oct 21, 2018
1 parent cc29bb0 commit 5bd0b5c8cc3d179cc3c7a9cc52f665fbd6e8864d
Showing with 1 addition and 2 deletions.
  1. +1 −2 jxmpp-core/src/main/java/org/jxmpp/xml/splitter/XmlPrettyPrinter.java
@@ -70,8 +70,7 @@ void onChunkStart() {
}

if (prettyWriter != null) {
// TODO: Initial size of this StringBuilder?
currentChunk = new StringBuilder();
currentChunk = new StringBuilder(1024);
}
}

0 comments on commit 5bd0b5c

Please sign in to comment.