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
The performance and type-stability of base array operations (such as .+=) in Julia 0.5 is being consistently affected when the JuMP package has been imported.
This seems to be related to precompilation, as the effect can be negated by commenting out the apparently unrelated Base.precompile calls in JuMP (see precompile.jl).
Other linear algebra operations do not seem to be affected, though interestingly the first timing pass is slightly affected in terms of the allocations by importing JuMP.
#18869 is on 0.5 so you can try if the current release-0.5 branch has this so you should try if it fixes the problem.
yuyichao
changed the title
Precompilation in packages affects performance of unrelated base methods
Precompilation in packages affects performance of unrelated base methods on 0.5
Feb 1, 2017
The performance and type-stability of base array operations (such as
.+=
) in Julia 0.5 is being consistently affected when the JuMP package has been imported.This seems to be related to precompilation, as the effect can be negated by commenting out the apparently unrelated
Base.precompile
calls in JuMP (see precompile.jl).Other linear algebra operations do not seem to be affected, though interestingly the first timing pass is slightly affected in terms of the allocations by importing JuMP.
Timing Comparison
Without JuMP
With JuMP
Types
Without JuMP
With JuMP
Test Script
The text was updated successfully, but these errors were encountered: