Skip to content

Commit

Permalink
Performance issue when handling strings
Browse files Browse the repository at this point in the history
Improve performance by using StringBuilder instead of StringBuffer.
  • Loading branch information
FlXME committed Jul 30, 2018
1 parent d4fb83f commit 7a1904c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/fastjson/asm/Type.java
Expand Up @@ -280,7 +280,7 @@ protected String getClassName() {
return "double";
case 9: //ARRAY:
Type elementType = getType(buf, off + getDimensions());
StringBuffer b = new StringBuffer(elementType.getClassName());
StringBuilder b = new StringBuilder(elementType.getClassName());
for (int i = getDimensions(); i > 0; --i) {
b.append("[]");
}
Expand Down

0 comments on commit 7a1904c

Please sign in to comment.