periodic gc call removed (very slow with some million objects), 33% faster dump info collecting

This commit is contained in:
honfika
2014-06-29 19:34:44 +02:00
parent 1b13ac5cd4
commit a3c4fae495
8 changed files with 632 additions and 647 deletions
@@ -40,7 +40,7 @@ public class DumpInfo {
public DumpInfo parent;
public List<DumpInfo> childInfos = new ArrayList<>();
private List<DumpInfo> childInfos;
public DumpInfo(String name, String type, Object value, long startByte, long lengthBytes) {
@@ -62,6 +62,13 @@ public class DumpInfo {
this.lengthBits = lengthBits;
}
public List<DumpInfo> getChildInfos() {
if (childInfos == null) {
childInfos = new ArrayList<>();
}
return childInfos;
}
@Override
public String toString() {
String value = previewValue == null ? "" : previewValue.toString();