logic: improved performance of python post processing (by around factor 2)
This commit is contained in:
committed by
Eberhard Graether
parent
7f861964ea
commit
2cfce03f6e
@@ -363,7 +363,7 @@ void TaskExecuteCustomCommands::runPythonPostProcessing(PersistentStorage& stora
|
|||||||
storage.addElementComponent(StorageElementComponent(ambiguousEdgeIds[i], elementComponentKindToInt(ElementComponentKind::IS_AMBIGUOUS), L""));
|
storage.addElementComponent(StorageElementComponent(ambiguousEdgeIds[i], elementComponentKindToInt(ElementComponentKind::IS_AMBIGUOUS), L""));
|
||||||
storage.addOccurrence(StorageOccurrence(ambiguousEdgeIds[i], dataToInsert[i].sourceLocationId));
|
storage.addOccurrence(StorageOccurrence(ambiguousEdgeIds[i], dataToInsert[i].sourceLocationId));
|
||||||
}
|
}
|
||||||
|
storage.setMode(SqliteIndexStorage::STORAGE_MODE_CLEAR);
|
||||||
storage.removeElements(utility::toVector(elementsToDelete));
|
storage.removeElements(utility::toVector(elementsToDelete));
|
||||||
storage.finishInjection();
|
storage.finishInjection();
|
||||||
LOG_INFO("Finished Python post processing.");
|
LOG_INFO("Finished Python post processing.");
|
||||||
|
|||||||
Reference in New Issue
Block a user