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
Inline the whole broadcast expression to avoid allocation (#30986)
* Inline the whole broadcast expression to avoid allocation
`map` has an inline limit of 16. To make sure that the whole broadcast
tree gets inlined properly, I added the `_inlined_map` function. I am not
sure if it is a good idea, but worth trying.
This PR solves the issue which I have mentioned in
2693778#issuecomment-461248258
```julia
julia> @allocated foo(tmp, uprev, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13,
k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25,
k26, k27, k28, k29, k30, k31, k32, k33, k34)
0
```
* Fix CI failure
* Stricter test (vectorization & no allocation for a 9-array bc)
* rm `_inlined_map`
0 commit comments