Commit ba365c1
authored
Use layout_getindex for adjoint-LayoutVectors with range access (#265)
Before:
```julia-repl
julia> using LazyArrays; v = ((1:10_000) .* LazyArrays.AccumulateAbstractVector(*, 1:10_000'))'; @time v[1:1, 1:10_000];
0.031649 seconds (476.63 k allocations: 12.861 MiB)
```
After:
```julia-repl
julia> using LazyArrays; v = ((1:10_000) .* LazyArrays.AccumulateAbstractVector(*, 1:10_000'))'; @time v[1:1, 1:10_000];
0.000031 seconds (65 allocations: 2.156 KiB)
```
(Improved timings also require
JuliaArrays/LazyArrays.jl#387)1 parent e809d34 commit ba365c1
3 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments