Other Optimizations

FAST_STACK
Minimize stack pointer movement
w = POP();
v = POP();
x = PyNumberMultiply(v,w);
PUSH(x);
w = POP();
v = TOP();
SET_TOP(PyNumberMultiply(v,w));
 
MISC_SPEEDUP
Various odds-n-ends
  • Macros instead of function calls where possible
  • Complete error test shortcuts
  • Treat tuples like lists for inlining
  • Faster comparison code