3 ms·
"zero cost abstractions" usually means you don't pay a performance penalty for abstractions you do not use.
by rantanplan 8y ago
"zero cost abstractions" usually means you don't pay a performance penalty for abstractions you do not use.
- tjoff 8y agoAlso means that the abstractions themselves don't introduce unnecessary overhead. It's taken from C++. C++ implementations obey the zero-overhead principle: What you don’t use, you don’t pay for [Stroustrup, 1994]. And further: What you do use, you couldn’t hand code any better. – Stroustrup https://blog.rust-lang.org/2015/05/11/traits.html https://blog.rust-lang.org/2015/05/11/traits.html