4 ms·
What does non-aliasing mean in this context?
by fovc 10y ago
What does non-aliasing mean in this context?
- shoo 10y agohttps://en.wikipedia.org/wiki/Pointer_aliasing https://en.wikipedia.org/wiki/Pointer_aliasing
- bmh100 10y agoIt means that the compiler knows that pointers/arrays don't overlap in memory. Data can therefore be safely stored in registers, instead of continually re-read from memory, to account for possible alterations between computations [1]. [1]: http://stackoverflow.com/questions/146159/is-fortran-faster-than-c#146186 http://stackoverflow.com/questions/146159/is-fortran-faster-...
- jack1243star 10y agoI wonder if Rust is fundamentally able to take advantage of its borrow checker and outperform C in this regard.