Author Ma Lin
Recipients Greg Price, Ma Lin, aeros, mark.dickinson, rhettinger, sir-sigurd
Date 2019-08-12.00:13:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565568789.39.0.87218482043.issue37812@roundup.psfhosted.org>
In-reply-to
Content
How about using a hybrid implementation for `int`.

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

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

If operation will overflow or other operation like **, we can transform native int to current form and run in current code path.
History
Date User Action Args
2019-08-12 00:13:09Ma Linsetrecipients: + Ma Lin, rhettinger, mark.dickinson, Greg Price, sir-sigurd, aeros
2019-08-12 00:13:09Ma Linsetmessageid: <1565568789.39.0.87218482043.issue37812@roundup.psfhosted.org>
2019-08-12 00:13:09Ma Linlinkissue37812 messages
2019-08-12 00:13:09Ma Lincreate