I'd like to suggest here, if you are giving this code a facelift, that on 
Windows you use VirtualAlloc and friends to allocate the arenas.  This gives 
you the most direct access to the VM manager and makes sure that a release 
arena is immediately availible to the rest of the system.  It also makes sure 
that you don't mess with the regular heap and fragment it.
Kristján

-----Original Message-----
From: python-dev-bounces+kristjan=ccpgames....@python.org 
[mailto:python-dev-bounces+kristjan=ccpgames....@python.org] On Behalf Of 
"Martin v. Löwis"
Sent: 22. desember 2008 22:56
To: Antoine Pitrou
Cc: python-dev@python.org
Subject: Re: [Python-Dev] extremely slow exit for program having huge (45G) 
dict (python 2.5.2)

>> Allocation of a new pool would have to do a linear search in these
>> pointers (finding the arena with the least number of pools);
> 
> You mean the least number of free pools, right?

Correct.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to