Hacker News new | ask | show | jobs
by Measter 201 days ago
Back in 2015 when the Rust project first had to disable use of LLVM's `noalias` they found that performance dropped by up to 5% (depending on the program). The big caveat here is that it was miscompiling, so some of that apparent performance could have been incorrect.

Of course, that was also 10 years ago, so things may be different now. There'll have been interest from the Rust project for improving the optimisations `noalias` performs, as well as improvements from Clang to improve optimisations under C and C++'s aliasing model.

1 comments

Thanks! I've heard a lot of anecdotes like this, but I've never found anyone presenting anything I can repeoduce myself.