[Python-3000] Free list for small longs
Brett Cannon
brett at python.org
Tue Feb 5 21:23:07 CET 2008
On Feb 5, 2008 12:13 PM, <skip at pobox.com> wrote:
>
> Christian> I've implemented a free list for small long objects with a
> Christian> size of 1 or -1.
>
> I'm not sure what you mean by "size of 1 or -1". Do you mean you only keep
> the numbers 1 and -1 on the free list? It's not obvious to me what a size
> of -1 is. Do you mean positive and negative numbers which fit in one byte
> or one long word?
I think Christian means single digit integers. But I thought we
already did this for positive numbers? So is the proposal to also
cover negative numbers?
And obviously having a single loop that explicitly tests the
optimization is not exactly indicative of real-world use. =)
-Brett
More information about the Python-3000
mailing list