[Patches] [ python-Patches-693638 ] rewrite ceval loop by jumping from static table
SourceForge.net
noreply@sourceforge.net
Wed, 26 Feb 2003 06:33:56 -0800
Patches item #693638, was opened at 2003-02-26 09:32
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=693638&group_id=5470
Category: Core (C code)
Group: Python 2.3
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Neal Norwitz (nnorwitz)
Summary: rewrite ceval loop by jumping from static table
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=693638&group_id=5470