C++26: Standard library hardening

7 points by raymii


snej

It’s interesting how negligible the performance is, per Google's analysis. I remember the hand-wringing back in the 90s about the cost of array bounds checks and null-pointer checks in Java. I assume it’s a combination of better compiler optimizations and better CPU instruction scheduling.

hunger

Its fun how Google gets cited when their numbers support what the C++ community wants to do, while the entire company is supposedly a clownshow that can not write decent C++ code in all other cases.

Also funny: They standardized a feature that was in all compilers but left out the one thing they all did differently: How to activate the entire thing.

anordal

0.3% performance overhead

What is the size overhead? And what is the perfomance overhead on an in-order core? Without branch prediction? Remember all the embedded devices this is going to run on.