[Python-Dev] [ python-Patches-876206 ] scary frame speed hacks
Tim Peters
tim.one at comcast.net
Tue Mar 2 12:23:29 EST 2004
[Skip]
> Why not a list of pre-made frames for each code block (default length 1)?
Or, IOW, per-code-block frame freelists (plural). Recursive generators have
gotten quite popular in my code <wink>.
BTW, if a gazillion distinct functions run when starting up a large app, do
we hang on to the memory for their gazillion distinct frames forever?
Recycling from a common frame pool has memory benefits in cases other than
just recursion. Experiment: run test.py from a Zope 2 or Zope 3 checkout,
and look at highwater memory consumption with and without the patch.
More information about the Python-Dev
mailing list