Message351278
This range has not been changed since "preallocated small integer pool" was introduced:
#define NSMALLPOSINTS 257
#define NSMALLNEGINTS 5
The commit (Jan 2007):
https://github.com/python/cpython/commit/ddefaf31b366ea84250fc5090837c2b764a04102
Is it worth increase the range?
FYI, build with MSVC 2017, the `small_ints` size:
32-bit build:
sizeof(PyLongObject) 16 bytes
sizeof(small_ints) 4192 bytes
64-bit build:
sizeof(PyLongObject) 32 bytes
sizeof(small_ints) 8384 bytes |
|
Date |
User |
Action |
Args |
2019-09-07 03:57:06 | malin | set | recipients:
+ malin, rhettinger, mark.dickinson, Greg Price, sir-sigurd, aeros |
2019-09-07 03:57:06 | malin | set | messageid: <1567828626.11.0.430162522253.issue38015@roundup.psfhosted.org> |
2019-09-07 03:57:06 | malin | link | issue38015 messages |
2019-09-07 03:57:05 | malin | create | |
|