Re:Why is Rust slightly slower than C?
by bt848 on Thursday September 12, 2019 @12:36AM
(#20948037)
In what way can βSTLβ be considered a performance hit? It looks like you just threw out every C++-related word you know.
[ Parent
| on HN ]
Re:Why is Rust slightly slower than C?
by verall on Thursday September 12, 2019 @01:05AM
(#20948184)
They probably meant, like everyone else who says that STL is a perf hit, "using STL containers is a perf hit"
Re:Why is Rust slightly slower than C?
by ncmncm on Thursday September 12, 2019 @01:25AM
(#20948295)
You mean, passing along lies, knowingly or otherwise?
Re:Why is Rust slightly slower than C?
by ncmncm on Thursday September 12, 2019 @12:57AM
(#20948139)
I have carefully benchmarked STL code against C-like loops and never got any measurable difference, even through multiple layers of abstraction.
Similarly, virtual function calls on modern CPUs are essentially free if the branch predictor can predict correctly, the usual case.
FUD from the '90s is way past its sell-by date.