Re:How copying an int made my code 11 times faster
by dbaupp on Monday February 20, 2017 @03:01AM
(#13685354)
Note that the compiler already adds "obvious" attributes to function calls, being careful to not emit them for things that contain an `UnsafeCell`. This is why that type exists, as the building block for interior mutability that the compiler understand and can optimise around.
[ Parent
| on HN ]
There are no comments on this comment yet.