4 ms·
In what way can “STL” be considered a performance hit? It looks like you just threw out every C++-related word you know.
by bt848 7y ago
In what way can “STL” be considered a performance hit? It looks like you just threw out every C++-related word you know.
- ncmncm 7y agoI 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.
- verall 7y agoThey probably meant, like everyone else who says that STL is a perf hit, "using STL containers is a perf hit"
- ncmncm 7y agoYou mean, passing along lies, knowingly or otherwise?