This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2005-10-31.20:00:49
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

sin_avatar, it's the number of integer objects _simultaneously 
alive_ that matters, not the total number of integer objects 
ever created.  Creating a list (or any other in-memory 
container) containing millions of integers can be a bad idea 
on many counts.

I'm closing this as WontFix, as there are no plans to replace 
the integer freelist.  I think it would be good if an upper bound 
were placed on its size (as most other internal freelists have), 
but that's trickier than it sounds and there are no plans to do 
that either.

> I can't udestood why you don't care about this?

It's a tradeoff:  it's much easier to avoid in real life than it is to 
change the implementation in a way that would actually help 
(the int freelist is an important speed optimization for most 
integer-heavy apps).  Changing your coding practices to live 
with this is your only realistic hope for relief.

BTW, the idea that you might really need to create a list with 
10 million integers in each thread of a threaded server is too 
bizarre to argue about ;-)
History
Date User Action Args
2007-08-23 14:35:46adminlinkissue1338264 messages
2007-08-23 14:35:46admincreate