JKRT / OM.jl

A Modelica Compiler in Julia
Other
25 stars 6 forks source link

import OM takes a lot of time for no good reason. #26

Open adrpo opened 2 years ago

adrpo commented 2 years ago

Something like:

julia> @time import OM
[ Info: Precompiling OM [2f925a0b-2436-437b-858e-49aee461894b]
┌ Warning: Package OM does not have OMFrontend in its dependencies:
│ - If you have OM checked out for development and have
│   added OMFrontend as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with OM
└ Loading OMFrontend into OM from project dependency, future warnings for OM are suppressed.
153.732497 seconds (112.58 M allocations: 7.183 GiB, 1.77% gc time, 33.70% compilation time)
adrpo commented 2 years ago

Especially if this is the case:

julia> @time import OMFrontend
 34.724030 seconds (46.50 M allocations: 2.577 GiB, 2.79% gc time, 87.05% compilation time)

julia> @time import OMBackend
 38.205766 seconds (46.05 M allocations: 3.155 GiB, 4.40% gc time, 17.33% compilation time)