Reintroduce SparseArrays in the system image
Reverting https://github.com/JuliaLang/julia/pull/44247 in order to avoid the impact on startup time for several packages. The impact is about 2 seconds, but it affects several packages that do not always need SparseArrays, but are forced to have that dependency due to lack of conditional dependencies, which we hope to have in 1.10.
We do not need to reintroduce SuiteSparse separately since it was reintegrated into SparseArrays.jl in order to maintain backwards compatibility.
cc @Wimmerer
I don't think this needs backport. It's in the sysimage in 1.8
I expected this. Is this the plan for all stdlibs that were being removed?
We still hope to keep DelimitedFiles in 1.9 out of the sysimage, and hopefully also remove it all the way from stdlib. That should give us some experience when it comes to SparseArrays for 1.10. @KristofferC may be able to say more.
I can't quite tell what is causing the failing darwin x64 test. Doesn't feel related to this PR.
@SobhanMP Heads up.
We still hope to keep
DelimitedFilesin 1.9 out of the sysimage, and hopefully also remove it all the way from stdlib. That should give us some experience when it comes to SparseArrays for 1.10. @KristofferC may be able to say more.
Why does it need to be removed?
So we can bump the package w/o bumping Julia or needing to backport (or at least make the process easier).