Indexing a SubArray without @inbounds
prevents its allocation from being elided
#29860
Labels
@inbounds
prevents its allocation from being elided
#29860
For example:
Presumably, this is because it appears in a call to
Base.throw_boundserror
. Not surprising, but it means that many SubArrays hang around even though their only non-inlined usage is in an error branch.The text was updated successfully, but these errors were encountered: