Commit bfd1c05
authored
* Add a work-around on Julia 1.0 for #857
`StaticVecOrMatLike` is a very large union, and this caused Julia 1.0.x to use a
large amount of memory when compiling StaticArrays in the presence of other
packages that also extend `LinearAlgebra.mul!` in a similar fashion. As an
example, this led to JuMP using more than 4 GB of RAM when running `using JuMP`,
causing its CI to crash.
Computing the eltypes within the function, rather than specifying them in the
type arguments greatly improves the issue, with `using JuMP` going from:
julia> @time using JuMP
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
Killed
to:
julia> @time using JuMP
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
97.868305 seconds (12.75 M allocations: 805.413 MiB, 0.30% gc time)
* Remove Julia 1.0 branch in favor of single implementation
1 parent 0e43102 commit bfd1c05
2 files changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
223 | 244 | | |
224 | 245 | | |
225 | 246 | | |
226 | 247 | | |
227 | | - | |
228 | 248 | | |
229 | 249 | | |
230 | 250 | | |
| |||
310 | 330 | | |
311 | 331 | | |
312 | 332 | | |
313 | | - | |
| 333 | + | |
314 | 334 | | |
315 | 335 | | |
316 | 336 | | |
| |||
439 | 459 | | |
440 | 460 | | |
441 | 461 | | |
442 | | - | |
| 462 | + | |
443 | 463 | | |
444 | 464 | | |
445 | 465 | | |
| |||
558 | 578 | | |
559 | 579 | | |
560 | 580 | | |
561 | | - | |
| 581 | + | |
562 | 582 | | |
563 | 583 | | |
564 | 584 | | |
| |||
0 commit comments