Commit fdc1090
Specialize newindex for StructuredMatrix broadcasting (#55626)
This provides most of the benefits seen in
#55604. The simpler
implementation appears to help with branch-prediction in inferring the
zero elements of the structured matrices.
The improved performance as a consequence:
```julia
julia> using LinearAlgebra
julia> U = UpperTriangular(rand(3000,3000)); D = Diagonal(rand(size(U,1)));
julia> @Btime $U .+ $D;
23.405 ms (3 allocations: 68.66 MiB) # nightly
15.266 ms (3 allocations: 68.66 MiB) # This PR
```
---------
Co-authored-by: Matt Bauman <[email protected]>1 parent da3468c commit fdc1090
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
0 commit comments