2 ms·
The headline is misleading. The decoder is fast because it uses SIMD operations, not because it's written in Rust. You'd get the same speedup vectorizing in any
by quotemstr 2y ago
The headline is misleading. The decoder is fast because it uses SIMD operations, not because it's written in Rust. You'd get the same speedup vectorizing in any other language. But "Rust" is sexy, and "memory-safe" is sexy, so that's what the headline says.
The tech press needs to do less sexy-optimizing and focus on the actual technical specifics.
- fiedzia 2y ago... and it uses SIMD encoding because the tooling made it available and convenient (and someone was willing to work on that, which is also a benefit of Rust). Tools matter.
- quotemstr 2y agoTrue! That said, vectorization is also available and convenient in C++. I'm just pointing out that the headline is kind of saying "aluminum Tesla Model S outperforms steel-bodied sports car" --- it emphasizes the wrong thing You can also write shitty slow code in Rust, and as the language becomes more popular, we'll see lower quality code. That's why it's so important to attribute performance wins to the real factors: we don't want to create the impression that translating a bad algorithm to Rust will somehow produce a good algorithm.