[Python-Dev] Improving the Python Memory Allocator (original) (raw)

Rodrigo Dias Arruda Senra rodsenra at gpr.com.br
Mon Jan 24 13:00:10 CET 2005


Evan Jones wrote:

This message is a follow up to a thread I started on python-dev back in October, archived here:

First, there is slightly more overhead with programs that allocate a lot of memory, release it, then reallocate it.

Summary of the changes:

- When freeing a page, if the arena is completely unused, the arena is deallocated.

Depending on the cost of arena allocation, it might help to define a lower threshold keeping a minimum of empty arena_objects permanently available. Do you think this can bring any speedup ?

cheers, Senra

-- Rodrigo Senra MSc Computer Engineer rodsenra at gpr.com.br GPr Sistemas Ltda http://www.gpr.com.br



More information about the Python-Dev mailing list