[Python-Dev] Changing pymalloc behaviour for long running processes

Aahz aahz at pythoncraft.com
Tue Oct 19 23:41:43 CEST 2004


Here's an idea that may help implementation slightly, and will almost
certainly increase the likelihood of any patch getting accepted: do the
pool scanning and freeing only on specific call of e.g. gc.free_mem().
IIUC, you'll still need to change the allocation strategy slightly, but
that's lower risk.

Once your strategy has proven itself, we can start talking about ways to
perform the freeing automatically.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

WiFi is the SCSI of the 21st Century -- there are fundamental technical
reasons for sacrificing a goat.  (with no apologies to John Woods)


More information about the Python-Dev mailing list