The idea is mixing `PyLongObject` with `Python 2's PyIntObject` implementation.

For example, on a 64-bit platform, if (an integer >=-9223372036854775808 and 
<=9223372036854775807), PyLongObject uses a native C type `signed long` to 
represent it.

People mostly use +-* operations, maybe using native int is faster, even 
including the cost of overflow check.

If operation will overflow or other operations like **, we can transform native 
int to current form, and run in current code path.

Regards
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/L6BMMETVQYFGDIG7VIFICDSYVUXQAS52/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to