diff options
Diffstat (limited to 'src/org/jetbrains/java/decompiler/main/ClassesProcessor.java')
-rw-r--r-- | src/org/jetbrains/java/decompiler/main/ClassesProcessor.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/jetbrains/java/decompiler/main/ClassesProcessor.java b/src/org/jetbrains/java/decompiler/main/ClassesProcessor.java index 88e8688..bab6976 100644 --- a/src/org/jetbrains/java/decompiler/main/ClassesProcessor.java +++ b/src/org/jetbrains/java/decompiler/main/ClassesProcessor.java @@ -41,6 +41,8 @@ import java.util.Map.Entry; public class ClassesProcessor { + public static final int AVERAGE_CLASS_SIZE = 16 * 1024; + private Map<String, ClassNode> mapRootClasses = new HashMap<String, ClassNode>(); public ClassesProcessor(StructContext context) { @@ -258,7 +260,7 @@ public class ClassesProcessor { new NestedMemberAccess().propagateMemberAccess(root); - StringBuilder classBuffer = new StringBuilder(); + StringBuilder classBuffer = new StringBuilder(AVERAGE_CLASS_SIZE); new ClassWriter().classToJava(root, classBuffer, 0); String lineSeparator = DecompilerContext.getNewLineSeparator(); |