Skip to content
Snippets Groups Projects
Commit 0aaf1570 authored by Ceki Gulcu's avatar Ceki Gulcu
Browse files

increase initial StringBuilder size

parent a0318b3b
Branches
......@@ -27,6 +27,9 @@ import java.util.Map;
abstract public class PatternLayoutBase<E> extends LayoutBase<E> {
static final int INTIAL_STRING_BUILDER_SIZE = 256;
Converter<E> head;
String pattern;
protected PostCompileProcessor<E> postCompileProcessor;
......@@ -108,7 +111,7 @@ abstract public class PatternLayoutBase<E> extends LayoutBase<E> {
}
protected String writeLoopOnConverters(E event) {
StringBuilder buf = new StringBuilder(128);
StringBuilder buf = new StringBuilder(INTIAL_STRING_BUILDER_SIZE);
Converter<E> c = head;
while (c != null) {
c.write(buf, event);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment