Dan Luu personal blog
The Performance Cost of Integer Overflow Checking
How much overhead should we expect from enabling integer overflow checks? Using a compiler flag or built-in intrinsics, we should be able to do the check with a conditional branch that branches based on the overflow flag that add and sub set. Code that looks like
- Points
- 166
- HN comments
- 106
- Submissions
- 1
- Cited by
- 10 commenters
Software EngineeringSystems & Performance2014
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Dec 18, 2014 | The Performance Cost of Integer Overflow Checking by nicholasjbs | 166 | 106 |
Cited in comments
Linked from 10 Hacker News comments by 10 different people, from Jan 2015 to May 2026.
Most recent:
- MaxBarraclough · May 17, 2026
- moonchild · Oct 15, 2022
- pcwalton · Jan 23, 2022
- steveklabnik · Mar 30, 2017
- hyperpape · Sep 3, 2016
- nickpsecurity · Apr 29, 2016