-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@inbounds
cannot be applied to entire functions
#13234
Comments
@inbounds
does not work when applied to functions@inbounds
cannot be applied to entire functions
I still see the bounds checks in |
Ah right, I was too quick. This part
is fixed, but that wasn't the issue here. |
Why is it not the issue here? This is the current expected behavior. |
Because it would be a better for |
just re-discovered that this does not work. And our docs doesn't say explicitly it doesn't work on function definition?
it's hard to tell if |
The documentation of
@inbounds
suggests that it can be applied to whole functions:http://docs.julialang.org/en/release-0.4/manual/performance-tips/?highlight=inbounds#performance-annotations.
However this suggests that it does not work (similar on 0.3 and 0.4):
The text was updated successfully, but these errors were encountered: