2 ms·
> "we care about performance in release mode but we are also going to check and make sure this code does specific things on overflow". More like: > "integer o
by dathinab 6y ago
> "we care about performance in release mode but we are also going to check and make sure this code does specific things on overflow".
More like:
> "integer overflow checks are a painful/unacceptable performance degradation for some use-cases, but we still want to cough over-/under-flow bugs during testing"
Anyway luckily you can just enable integer overflow checks in release builds, which is not a uncommon setup in use-cases like server code.