Commit da56aa8
Eliminate all invalidation trees (8 → 0)
- NamedArrayPartition: narrow setindex!(x, args...) to setindex!(x, v, i::Int)
instead of catching all signatures. AbstractVector only needs the Int method.
- Remove setindex! CartesianIndex from Union in multi-index method (Base handles it)
- Remove dedicated (Int, CartesianIndex) getindex/setindex! methods; flatten
inside the multi-arg dispatcher instead
- Fix NamedArrayPartition test: x[1:end] now preserves type (correct behavior)
Result: `using RecursiveArrayTools` causes 0 invalidation trees.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9e09463 commit da56aa8
File tree
3 files changed
+11
-19
lines changed- src
- test
3 files changed
+11
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
753 | 744 | | |
754 | 745 | | |
755 | 746 | | |
| |||
818 | 809 | | |
819 | 810 | | |
820 | 811 | | |
821 | | - | |
| 812 | + | |
822 | 813 | | |
823 | 814 | | |
824 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments