Modellingtoolkit and PackageCompiler

I have the impression that PackageCompiler does not reduce the compilation time for ModelingToolkit models much. I have a function that creates my model and call it in test_for_precompile.jl script of PackageCompiler. If I call the same function when the compiled system image is loaded it still needs 14s for the first run, only 0.8s for the second run.

Any idea?

It needs more work on type stability in BasicSymbolic.

1 Like

Is there an issue that is tracking this?

I don’t know, SymbolicUtils.jl?