Message349420
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. | |
| Date | User | Action | Args | | 2019-08-12 00:13:09 | malin | set | recipients: + malin, rhettinger, mark.dickinson, Greg Price, sir-sigurd, aeros | | 2019-08-12 00:13:09 | malin | set | messageid: <1565568789.39.0.87218482043.issue37812@roundup.psfhosted.org> | | 2019-08-12 00:13:09 | malin | link | issue37812 messages | | 2019-08-12 00:13:09 | malin | create | | |