]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF patch #664320: Replace push/pop clusters in ceval.c
authorRaymond Hettinger <python@rcn.com>
Thu, 9 Jan 2003 15:24:30 +0000 (15:24 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 9 Jan 2003 15:24:30 +0000 (15:24 +0000)
commit663004bb3dc8f509f869cab9728e9df516ae10b6
tree32d9f6898f2879e374a67367187f3d396cd1141c
parent9b44571caae9771fb1f6261aaacc4c001701774a
SF patch #664320: Replace push/pop clusters in ceval.c

Replaced groups of pushes and pops with indexed access to the stack and
a single adjustment (if needed) to the stacklevel.

Avoids scores of unnecessary increments and decrements to the stackpointer.
Removes unnecessary sequential dependencies so that the compiler has more
freedom for optimizations.  Frees the processor for more parallel and
pipelined execution by using mostly read-only access and having few pointer
adjustments just prior to a read or write.
Python/ceval.c