Author Ma Lin
Recipients Greg Price, Ma Lin, aeros, mark.dickinson, rhettinger, sir-sigurd
Date 2019-09-07.03:57:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567828626.11.0.430162522253.issue38015@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-09-07 03:57:06Ma Linsetrecipients: + Ma Lin, rhettinger, mark.dickinson, Greg Price, sir-sigurd, aeros
2019-09-07 03:57:06Ma Linsetmessageid: <1567828626.11.0.430162522253.issue38015@roundup.psfhosted.org>
2019-09-07 03:57:06Ma Linlinkissue38015 messages
2019-09-07 03:57:05Ma Lincreate