[Python-Dev] extremely slow exit for program having huge (45G) dict (python 2.5.2)
Kristján Valur Jónsson
kristjan at ccpgames.com
Tue Dec 23 22:08:16 CET 2008
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.com at python.org [mailto:python-dev-bounces+kristjan=ccpgames.com at python.org] On Behalf Of "Martin v. Löwis"
Sent: 22. desember 2008 22:56
To: Antoine Pitrou
Cc: python-dev at 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.
More information about the Python-Dev
mailing list