You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently got my hands on the 1.3 nightly binary and noticed a huge increase in compilation time for my code using static arrays. This goes against what I've noticed for most other code, which generally compiles faster on later versions of julia.
Below is a very simple benchmark with a very long static vector. For more complicated functions, the findings are the same for vectors of more moderate lengths (50-100).
This is slightly worrying as I now frequently think julia has crashed when several minutes are spent on compilation, for codes which previously ran quite fast.
We're spending all the time here inferring getindex(::SArray, i) where i is a constant. That, of course, will never be useful. I think we need some kind of rule to avoid constant propagating getindex of non-constant AbstractArray types. Trying a simple version of that cuts the time to <= 5 seconds.
Adds some heuristics to avoid constant propagation in cases unlikely to
be useful: getindex and setindex! of non-const arrays, iterate of
non-const objects, and arithmetic with some non-const args.
Adds some heuristics to avoid constant propagation in cases unlikely to
be useful: getindex and setindex! of non-const arrays, iterate of
non-const objects, and arithmetic with some non-const args.
I recently got my hands on the 1.3 nightly binary and noticed a huge increase in compilation time for my code using static arrays. This goes against what I've noticed for most other code, which generally compiles faster on later versions of julia.
Below is a very simple benchmark with a very long static vector. For more complicated functions, the findings are the same for vectors of more moderate lengths (50-100).
Julia 1.1.0
Julia 1.2.0-DEV.647
Julia 1.3.0-DEV.249
This is slightly worrying as I now frequently think julia has crashed when several minutes are spent on compilation, for codes which previously ran quite fast.
Ref https://discourse.julialang.org/t/compilation-times-for-long-static-vectors-are-increasing/
The text was updated successfully, but these errors were encountered: