Performance tips recommend invalid use of @inbounds
#54218
Labels
domain:docs
This change adds or pertains to documentation
kind:bug
Indicates an unexpected problem or unintended behavior
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: