classification
Title: Improvements to ceval.c
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: mrjbq7, rhettinger, tim.peters
Priority: normal Keywords: patch

Created on 2006-05-22 10:15 by mrjbq7, last changed 2007-04-03 01:59 by rhettinger. This issue is now closed.

Files
File name Uploaded Description Edit
ceval.diff mrjbq7, 2006-05-22 11:00
Messages (4)
msg50329 - (view) Author: mrjbq7 (mrjbq7) Date: 2006-05-22 10:15
From Raymond Hettinger, submitting here to keep track of for 
NeedForSpeed sprint.

Here are some customizations to your Python build:
 
First, make sure that WITH_TSC and WITH_THREAD are not defined in the 
build.

Then, attached diff to disable the tracing code, remove NOPs, speed-up 
absolute jumps, and increase the signal check interval.
msg50330 - (view) Author: mrjbq7 (mrjbq7) Date: 2006-05-22 11:00
Logged In: YES 
user_id=1172546

Okay, now I checked the box "upload and attach file".  Thats a terrible UI.
msg50331 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-05-22 15:39
Logged In: YES 
user_id=31435

Assigned to Raymond.  Raymond is there something of general
use here?  As a standalone patch, it sucks ;-)
msg50332 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2007-04-03 01:59
Sorry, all of these are useless for the general distribution.

* Increasing the ticker rollovers will give a tiny speed-up but would hurt the responsiveness of multi-threaded applications.

* The tracing functions are needed in the general distribution and should not be shut-off.

* The NOP case is a fail-safe; not essential, but not detrimental either.  The peephole optimizer introduces NOPS and then clears them out.  If someone makes a change leaving them in or if they are generating their own bytecode, we don't want the eval-loop to fail.

* The JUMP_ABSOLUTE step needs to make a full trip through the eval-loop or else it won't be possible to break out of a "while 1: pass".




While
History
Date User Action Args
2006-05-22 10:15:51mrjbq7create