3 ms·
Not that strange considering Python effectively dropped Int64 support. In Python 2.7 there was a distinction between when Python would use the "long int" vs th
by PheonixPharts 4y ago
Not that strange considering Python effectively dropped Int64 support.
In Python 2.7 there was a distinction between when Python would use the "long int" vs the traditional Int64. This distinction was eventually entirely dropped in favor of all ints being "long ints". In case you are unfamiliar python implement ints internally as a list of digits. This is now true no matter the number of digits in the int.
What interesting about this is that there actually are edge cases where performance in Python 2.7 will be superior to Python 3. There's a nice foot note about this in "High Performance Python".