Bound Checks slowing code down? #868
Unanswered
matzhaugen
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Since it's a question, I moved it over here to the Q&A section. It helps keeps the issue list focused. Your code doesn't compile :) Can you fix that and mark which line you are talking about? Variable assignments/value moves in Rust don't run any library defined code at all, so that doesn't bounds check. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey I was wondering, do the bound checks for all assignment operations slow down the code? For example if I did
would I do
p*p
bound checks?If so how can one avoid this without doing
unsafe
rust?Beta Was this translation helpful? Give feedback.
All reactions