Re:In C++, is empty() faster than comparing the size with zero?
by saagarjha on Friday October 29, 2021 @05:08AM
(#29036691)
Compilers can and do perform these optimizations; they maintain internal tables of instruction costs that guide what code is emitted. It’s just that modern processors don’t really have these kinds of differences, and the ones that do are generally not amenable to high-level compilers for other reasons (extreme register pressure, etc.)
[ Parent
| on HN ]
There are no comments on this comment yet.