3 ms·
How so? Does not python add some checks to see if an operation will overflow or not? Or something like that?
by shultays 11y ago
How so? Does not python add some checks to see if an operation will overflow or not? Or something like that?
- lmm 11y agoAIUI trapping on overflow is usually supported at the hardware level, so it's no overhead unless an overflow actually happens. (This is outside my area of expertise though - it's possible I'm wrong and they have to explicitly check the carry flag or some such, at least on some platforms)