mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Reset keyword search current results tracking at the end of keyword search ingest (minor memory optimization)
This commit is contained in:
parent
675c0357af
commit
c89ec83ade
@ -764,9 +764,12 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
|
|||||||
if (finalRun) {
|
if (finalRun) {
|
||||||
logger.log(Level.INFO, "The final searcher in this ingest done.");
|
logger.log(Level.INFO, "The final searcher in this ingest done.");
|
||||||
finalSearcherDone = true;
|
finalSearcherDone = true;
|
||||||
//keywords.clear();
|
keywords.clear();
|
||||||
//keywordLists.clear();
|
keywordLists.clear();
|
||||||
//keywordToList.clear();
|
keywordToList.clear();
|
||||||
|
//reset current resuls earlier to potentially garbage collect sooner
|
||||||
|
currentResults = new HashMap<Keyword, List<ContentHit>>();
|
||||||
|
|
||||||
managerProxy.postMessage(IngestMessage.createMessage(++messageID, MessageType.INFO, KeywordSearchIngestService.instance, "Completed"));
|
managerProxy.postMessage(IngestMessage.createMessage(++messageID, MessageType.INFO, KeywordSearchIngestService.instance, "Completed"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user