Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1549

Consider reducing cost of VariableImportAdapter from O(nm) to O(n)

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: L3 - Default L3 - Default
    • 2.7.0-alpha1, 2.7.0
    • None
    • backend
    • 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.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: