Commit 826568c
Remove any/all overloads for ArrayPartition to eliminate invalidations
The custom `any(f::Function, A::ArrayPartition)` and
`all(f::Function, A::ArrayPartition)` methods were the single largest
source of invalidations when loading SciMLBase (575 children for `any`
alone, caused by ambiguity with `Base.any(f::Function, a::AbstractArray)`).
Since ArrayPartition is an AbstractVector with correct iteration,
the default Base implementations produce identical results. The custom
versions just short-circuited by partition component rather than
element-by-element, which is a minor optimization not worth 575
invalidations.
All RecursiveArrayTools tests pass with this change.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 14fa325 commit 826568c
1 file changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 226 | | |
233 | 227 | | |
234 | 228 | | |
| |||
0 commit comments