Skip to content

Optimization need in filter_model function of modelapi.py #12

Description

@villelaitila

filter_model algorithm is not optimal from performance point of view.

createOrGetElement call should be avoided in that function and instead create new SElement with using its consructor and attach it directly to parent element created earlier. This changes processing a lot since searching from the root level is not done for every created element.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions