After loading the DifferentialEquations.jl package in the REPL, Julia seems to start performing very slowly, possibly only when text is output to the REPL, but in a way that makes the REPL extremely frustrating to use. Starting from a fresh Julia REPL session, I perform the following operations:
julia> @time a = [1,2,3,4]
0.000009 seconds (1 allocation: 96 bytes)
4-element Vector{Int64}:
1
2
3
4
julia> using DifferentialEquations
julia> @time a = [1,2,3,4]
0.000003 seconds (1 allocation: 96 bytes)
4-element Vector{Int64}:
1
2
3
4
julia>
The first @time a = [1,2,3,4]
is nearly instantaneous, as I would expect. But after using DifferentialEquations
(which itself takes 30-60 seconds), nearly 10 seconds elapse between hitting enter after @time a = [1,2,3,4]
and when I am able to type in the REPL again.
This is especially bad when an exception occurs. The stacktrace output can take over a minute to finish.
Why is the inclusion of the DifferentialEquations package so dramatically affecting the performance of seemingly unrelated operations, including those in Base? I have observed this behavior on two computers.