summaryrefslogtreecommitdiff
path: root/Python/getversion.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-20 04:20:52 +0000
committerGuido van Rossum <guido@python.org>1997-01-20 04:20:52 +0000
commitf3e85a0356e679ed9ff8d13236ff8e9f77a9fd0b (patch)
treed3bffd9d392e2a5671e53267a430e7a381e2e79a /Python/getversion.c
parentcdf578ebaf53ece3a639e3042c7e122774262aa7 (diff)
downloadcpython-git-f3e85a0356e679ed9ff8d13236ff8e9f77a9fd0b.tar.gz
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.
Diffstat (limited to 'Python/getversion.c')
0 files changed, 0 insertions, 0 deletions