This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: rewrite ceval loop by jumping from static table
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nnorwitz
Priority: normal Keywords: patch

Created on 2003-02-26 14:32 by nnorwitz, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ceval-rewrites.tgz nnorwitz, 2003-02-26 14:33 tar/gzipped file containing 8 versions
Messages (1)
msg42901 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-02-26 14:32
Several times the topic of rewriting the ceval loop
(eval_frame) has been brought up as a possibility of
speeding up python.  Here's the most recent.

http://mail.python.org/pipermail/python-dev/2003-February/033680.html

Quick results:  after the rewrite, Python was about 15%
slower.  I think a bunch more optimizations could be
made, but I think the best case would be to rival the
existing speed--so I stopped.

The way to squeeze more speed out of this patch would
be change the calling conventions.  One note, this
patch probably uses less memory because there were a
bunch of local variables removed from eval_frame.  Of
course, some are also included in the ceval_struct.

I removed the entire switch from eval_frame.  There are
a bunch of snapshots along the way included in the tar
file. 

All this work was against Python/ceval.c revision 2.350.
History
Date User Action Args
2022-04-10 16:07:09adminsetgithub: 38059
2003-02-26 14:32:17nnorwitzcreate