Skip to content

Commit 3abf1a6

Browse files
committed
refactor: create the StringBuilder instance with a reasonable initial size
1 parent 964e981 commit 3abf1a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/github/lppedd/cc/parser/specConventionalCommit.flex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package com.github.lppedd.cc.parser;
1818

1919
%{
2020

21-
private final StringBuilder sb = new StringBuilder();
21+
private final StringBuilder sb = new StringBuilder(256);
2222

2323
private void appendText(final CharSequence value) {
2424
sb.append(value);

0 commit comments

Comments
 (0)