[Python-Dev] Removing surplus fields from the frame object and not adding any new ones.
Guido van Rossum
guido at python.org
Mon Apr 9 16:59:41 CEST 2012
On Mon, Apr 9, 2012 at 3:51 AM, Mark Shannon <mark at hotpy.org> wrote:
> f_namespaces would be part of the frame, replacing f_builtins, f_globals
> and f_locals. The indirection of an external object hurts performance,
> so it would have to be a struct within the frame. The aim is clarity;
> locals, globals and builtins form a trio, so should be implemented as such.
How does replacing three fields with a struct containing three fields
reduce the size of the frame or the overhead in creating it?
--
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev
mailing list