]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Changes that appear to give another 12% speedup.
authorGuido van Rossum <guido@python.org>
Mon, 20 Jan 1997 04:20:52 +0000 (04:20 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Jan 1997 04:20:52 +0000 (04:20 +0000)
commitf3e85a0356e679ed9ff8d13236ff8e9f77a9fd0b
treed3bffd9d392e2a5671e53267a430e7a381e2e79a
parentcdf578ebaf53ece3a639e3042c7e122774262aa7
Changes that appear to give another 12% speedup.

Rather than allocating a list object for the fast locals and another
(extensible one) for the value stack and allocating the block stack
dynamically, allocate the block stack with a fixed size (CO_MAXBLOCKS
from compile.h), and stick the locals and value stack at the end of
the object (this is now possible since the stack size is known
beforehand).  Get rid of the owner field and the nvalues argument --
it is available in the code object, like nlocals.

This requires small changes in ceval.c only.
Objects/frameobject.c