2 ms·
There are fast-paths for these cases, like this one: https://github.com/python/cpython/blob/4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6/Python/ceval.c#L1831-L1833
by ketralnis 6y ago
There are fast-paths for these cases, like this one: https://github.com/python/cpython/blob/4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6/Python/ceval.c#L1831-L1833 https://github.com/python/cpython/blob/4b8cdfcb22fbeaab9d954... (and note the comment above it about integer addition!)
But the cpython folk make understandability an explicit goal of the codebase which tends to preclude things like fancy optimisations or JITs