Skip to content

Slowdown with build_function output in recent versions #800

@MarcBerliner

Description

@MarcBerliner

I recently updated to the latest ModelingToolkit version and I've noticed a pretty sizable slowdown in the in-place result from build_function. One 37-line function that I made is 5x slower and a 148-line function is 20x slower compared to using v4.5.3 (I can DM them to the devs). Much longer functions have a more modest slowdown, but it is still quite noticeable. I believe it's due to the change in syntax in recent versions.

(Apologies if this should be for SymbolicUtils.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions