Re:Ask HN: Why is Rust faster than C++ for calculating the s...
by lowcoderev on Saturday April 01, 2023 @04:15AM
(#35398329)
Is that a feature specific to Rust? Can you please share any references to their official docs citing this?
[ Parent
| on HN ]
Re:Ask HN: Why is Rust faster than C++ for calculating the s...
by throwawaylinux on Saturday April 01, 2023 @04:18AM
(#35398347)
It's a feature of optimizing compilers for decades. OP just didn't compile the C++ code with optimizations enabled.