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
Remove some UB from examples in performance tips
Fixes#54218
I also changed the iteration specification to better align with
elsewhere in the document.
A separate PR may want to delete or revise this section if automatic
simd has improved. Nevertheless, I think this PR should be
unobjectionable as is.
https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-annotations (still broken on master)
includes
which is UB because
eachindex(x)
may be out of bounds iny
and@inbounds
applies to all possible inputs toinner
.It should be
eachindex(x, y)
. Making an issue instead of a PR to avoid conflict with #54211The text was updated successfully, but these errors were encountered: