optimization not to create another collection. remove file limit.

This commit is contained in:
adam-m 2012-10-16 19:05:07 -04:00
parent 5c8039339d
commit 0a92474914

View File

@ -29,7 +29,7 @@ import org.sleuthkit.datamodel.LayoutFile;
*/ */
class ContentChildren extends AbstractContentChildren { class ContentChildren extends AbstractContentChildren {
private static final int MAX_CHILD_COUNT = 10000; //private static final int MAX_CHILD_COUNT = 1000000;
private Content parent; 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 @Override
protected void removeNotify() { protected void removeNotify() {
setKeys(Collections.emptySet()); setKeys(Collections.emptySet());
} }
} }