[Python-Dev] Windows Low Fragementation Heap yields speedup of
ejones at uwaterloo.ca
Thu Feb 17 02:26:16 CET 2005
On Feb 16, 2005, at 18:42, Martin v. Löwis wrote:
> I must admit that I'm surprised. I would have expected
> that most allocations in Python go through obmalloc, so
> the heap would only see "large" allocations.
> It would be interesting to find out, in your application,
> why it is still an improvement to use the low-fragmentation
Hmm... This is an excellent point. A grep through the Python source
code shows that the following files call the native system malloc (I've
excluded a few obviously platform specific files). A quick visual
inspection shows that most of these are using it to allocate some sort
of array or string, so it likely *should* go through the system malloc.
Gfeller, any idea if you are using any of the modules on this list? If
so, it would be pretty easy to try converting them to call the obmalloc
functions instead, and see how that affects the performance.
More information about the Python-Dev