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.
|
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
|