[Python-Dev] Type of range object members
"Martin v. Löwis"
martin at v.loewis.de
Wed Aug 16 08:25:32 CEST 2006
Greg Ewing schrieb:
> Guido van Rossum wrote:
>> I worry that dropping the special allocator will be too slow.
>
> Surely there's some compromise that would allow
> recently-used ints to be kept around, but reclaimed
> if memory becomes low?
Hardly. The efficiency of the special-case allocator also
comes from the fact that it doesn't ever have to release
memory. Just try changing it to see what I mean.
Regards,
Martin
More information about the Python-Dev
mailing list