3 ms·
I can't reply to pcwalton directly for some reason. In reply to https://news.ycombinator.com/item?id=10139287 https://news.ycombinator.com/item?id=10139287 :
by CyberShadow 11y ago
I can't reply to pcwalton directly for some reason.
In reply to https://news.ycombinator.com/item?id=10139287 https://news.ycombinator.com/item?id=10139287 :
> No, it doesn't. Bounds checks in cold code don't matter (and there aren't many to begin with).
OK, I trust your expertise on this. The "long tail" applies to optimizations in general. I don't know why the benchmarks are slower for Rust then, could be the difference in backends.
> The fact that D and Rust beat C doesn't mean that they're faster than C.
I don't know what's going on there, but some languages allow writing fast code easier than in C, e.g. SIMD vector array operations.