mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 14:19:32 +00:00
optimization not to create another collection. remove file limit.
This commit is contained in:
parent
5c8039339d
commit
0a92474914
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user