[Python-Dev] [ python-Patches-876206 ] scary frame speed hacks

Tim Peters tim.one at comcast.net
Tue Mar 2 21:20:16 EST 2004


[Greg Ewing]
> If you have a gazillion distinct functions in memory at
> once, you've got a gazillion code objects, plus associated
> function objects, arg name tuples, etc... Adding a stack
> frame to each of these probably won't make a huge difference,
> relatively speaking.

These aren't C frames -- PyFrameObject is an extraordinarily large struct (>
350 bytes baseline, for a bare frame with no locals, no cells, and no eval
stack).




More information about the Python-Dev mailing list