-
Task
-
Resolution: Won't Do
-
L3 - Default
-
None
-
None
during variable import mapping currently all entities are iterated per importAdapter O(n*m)
for (VariableImportAdapter variableImportAdapter : importAdapterProvider.getPlugins()) {
pluginVariableList = variableImportAdapter.adaptVariables(pluginVariableList);
}
we optimize this by changing the adapter interface to only map one entry and provide a getter for the type it handles. We can then loop once through all the entries, calling the appropriate adapter by type making it O( n ) for each and would be done.