[Python-ideas] Expansion of the range of small integers

Serhiy Storchaka storchaka at gmail.com
Mon Sep 17 22:44:37 CEST 2012

On 17.09.12 20:49, Terry Reedy wrote:
> It might be interesting to instrument the int allocator to count
> allocations of ints up to say 10000 in real apps.

Here is a patch. Apply it, rebuild (CFLAGS=-DCOUNT_ALLOCS=1 ./configure 
&& make) and run your favorite Python 3 apps.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: count_small_int_allocs.diff
Type: text/x-patch
Size: 2364 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120917/df3582da/attachment.bin>

More information about the Python-ideas mailing list