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
This reduces TTFX as well as improves performance. This is because we
add specialized functions to avoid the branches in `getindex` for a
triangular matrix.
```julia
julia> using LinearAlgebra
julia> U4 = UpperTriangular(ones(4,4));
julia> @time Array(U4); # TTFX
0.087534 seconds (193.27 k allocations: 9.706 MiB, 99.88% compilation time) # nightly
0.049869 seconds (91.45 k allocations: 4.531 MiB, 99.78% compilation time) # this PR
julia> U = UpperTriangular(ones(2000,2000));
julia> @Btime Array($U);
3.205 ms (3 allocations: 30.52 MiB) # master
2.764 ms (3 allocations: 30.52 MiB) # this PR
```
0 commit comments