[Patches] [ python-Patches-453035 ] shrink frame objects

noreply@sourceforge.net noreply@sourceforge.net
Sun, 19 Aug 2001 12:12:54 -0700


Patches item #453035, was opened at 2001-08-19 12:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=453035&group_id=5470

Category: core (C code)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Tim Peters (tim_one)
Summary: shrink frame objects

Initial Comment:
This patch reduces the size of frame objects.  A lot
of memory is used for the f_blockstack array.  Deeply
nested blocks are rarely used.  I believe the standard
test suite never uses any more than three blocks.
The patch reduces the size of the f_blockstack array
from 20 elements to 4.  The rest of the block stack is
allocated only if needed.  On my machine this change
reduces the size of the frameobject struct from 336
bytes to 148.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=453035&group_id=5470