From 0a9247491405dceb73fcff212c5e6ab8045ac36c Mon Sep 17 00:00:00 2001 From: adam-m Date: Tue, 16 Oct 2012 19:05:07 -0400 Subject: [PATCH] optimization not to create another collection. remove file limit. --- .../org/sleuthkit/autopsy/datamodel/ContentChildren.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/ContentChildren.java b/Core/src/org/sleuthkit/autopsy/datamodel/ContentChildren.java index f99b48ad0b..278205427e 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/ContentChildren.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/ContentChildren.java @@ -29,7 +29,7 @@ import org.sleuthkit.datamodel.LayoutFile; */ class ContentChildren extends AbstractContentChildren { - private static final int MAX_CHILD_COUNT = 10000; + //private static final int MAX_CHILD_COUNT = 1000000; private Content parent; @@ -50,11 +50,14 @@ class ContentChildren extends AbstractContentChildren { // } // } - setKeys(children.subList(0, Math.min(children.size(), MAX_CHILD_COUNT))); + //limit number children + //setKeys(children.subList(0, Math.min(children.size(), MAX_CHILD_COUNT))); + setKeys(children); } @Override protected void removeNotify() { setKeys(Collections.emptySet()); } + }