4 ms·
Except you pay this cost (locks + codegen) even for PODs with known data at compile time.
by variadix 3y ago
Except you pay this cost (locks + codegen) even for PODs with known data at compile time.
- cjensen 3y agoNo. PODs that are initialized with no side-effects can be optimized away into compile-time initialization. E.g. if you have an integer that is static inside a function, it can just be initialized old-school.