Re:How Rust 1.26 more than tripled the speed of my code
by nonsince on Monday May 14, 2018 @10:19AM
(#17065728)
They're certainly familiar with assembly itself, but the `asm!` macro and the related constructs in Clang/GCC is its own beast and has a lot of footguns (like GCC allocating registers as overlapping by default). I don't begrudge them writing suboptimal assembly, since it already beat our Rust implementation by a significant margin.
Re:How Rust 1.26 more than tripled the speed of my code
by stochastic_monk on Monday May 14, 2018 @12:29PM
(#17066830)
And correct.
He/she might be cool, but I think someone familiar with assembly optimisation would think to look at the generated assembly as well, after noticing the speedup is not what you expect. Don't go hand-writing assembly routines thinking your code is fast without actually checking whether your code is fast. :)