Raymond Hettinger 4bad9ba282 SF patch #670367: Micro-optimizations for ceval.c
Make the code slightly shorter, faster, and easier to
read.

* Eliminate unused DUP_TOPX code for x==1.
compile.c always generates DUP_TOP instead.

* Since only two cases remain for DUP_TOPX, replace
the switch-case with if-elseif.

* The in-lined integer compare does a CheckExact on
both arguments. Since the second is a little more
likely to fail, test it first.

* The switch-case for IS/IS_NOT and IN/NOT_IN can
separate the regular and inverted cases with no
additional work. For all four paths, saves a test and
jump.
2003-01-19 05:08:13 +00:00
..
2002-06-11 06:22:31 +00:00
2002-01-23 15:51:12 +00:00
2002-12-06 12:48:53 +00:00
2002-08-15 14:59:02 +00:00
2002-12-30 22:08:05 +00:00
2002-12-30 22:08:05 +00:00
2002-07-30 11:44:44 +00:00
2002-11-08 12:53:11 +00:00
2002-06-11 06:22:31 +00:00
2002-08-15 14:59:02 +00:00