cpython/Python
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
..
.cvsignore
atof.c
bltinmodule.c SF bug #655271: Slightly modify locals() doc 2003-01-04 02:16:22 +00:00
ceval.c SF patch #670367: Micro-optimizations for ceval.c 2003-01-19 05:08:13 +00:00
codecs.c Properly compute array size even for --disable-unicode. 2002-11-21 23:53:25 +00:00
compile.c A. Lloyd Flanagan pointed out a spelling error on c.l.py. 2003-01-16 15:39:07 +00:00
dup2.c
dynload_aix.c Fix SF #639945, 64-bit bug on AIX 2002-12-31 00:06:24 +00:00
dynload_atheos.c Patch #488073: AtheOS port. 2002-06-11 06:22:31 +00:00
dynload_beos.c
dynload_dl.c
dynload_hpux.c Fix SF # 551504, python -v sometimes fails to find init (HPUX) 2002-11-02 20:58:05 +00:00
dynload_mac.c Got rid of old (non-carbon-ppc and even cfm68k) file extensions for 2002-12-16 13:16:25 +00:00
dynload_next.c Squashed compiler warnings by adding casts, making sure prototypes are in 2002-12-23 21:03:36 +00:00
dynload_os2.c
dynload_shlib.c
dynload_stub.c
dynload_win.c Fix a couple of whitespace consistency nits. 2002-08-26 21:20:30 +00:00
errors.c Constify filenames and scripts. Fixes #651362. 2002-12-11 14:04:59 +00:00
exceptions.c Patch #614055: Support OpenVMS. 2002-12-06 12:48:53 +00:00
fmod.c
frozen.c This is my patch 2002-08-15 14:59:02 +00:00
frozenmain.c Patch #569753: Remove support for WIN16. 2002-06-30 15:26:10 +00:00
future.c Constify filenames and scripts. Fixes #651362. 2002-12-11 14:04:59 +00:00
getargs.c Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that 2002-11-21 20:23:11 +00:00
getcompiler.c
getcopyright.c Another copyright update. (JvR: can you backport this to the 2.3a1 2003-01-02 16:27:15 +00:00
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c
graminit.c Patch #534304: Implement phase 1 of PEP 263. 2002-08-04 17:29:52 +00:00
hypot.c
import.c PEP 302 + zipimport: 2002-12-30 22:08:05 +00:00
importdl.c Simplify, and avoid PyModule_GetDict() while we're at it. 2002-08-26 21:15:11 +00:00
importdl.h PEP 302 + zipimport: 2002-12-30 22:08:05 +00:00
mactoolboxglue.c It turns out that some calls return AEDesc records that are "borrowed", 2003-01-17 23:11:17 +00:00
marshal.c Whitespace normalization. 2002-07-30 11:44:44 +00:00
memmove.c
modsupport.c Fixed potential crash: v can be NULL here, so use Py_XDECREF rather than Py_DECREF 2002-12-15 13:45:32 +00:00
mysnprintf.c
mystrtoul.c
pyfpe.c
pystate.c Assorted patches from Armin Rigo: 2002-11-08 12:53:11 +00:00
pythonrun.c Since the *_Init() are private, prefix with _, suggested by Skip 2002-12-31 03:42:13 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c
symtable.c
sysmodule.c Patch #664376: sys.path[0] should contain absolute pathname. 2003-01-08 14:33:48 +00:00
thread.c Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT. 2002-07-19 06:55:41 +00:00
thread_atheos.h Patch #488073: AtheOS port. 2002-06-11 06:22:31 +00:00
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h SF patch 522961: Leak in Python/thread_nt.h, from Gerald S. Williams. 2002-02-28 21:34:34 +00:00
thread_os2.h reformat for PEP-7 style conformance 2002-12-04 12:29:37 +00:00
thread_pth.h
thread_pthread.h Patch #650415: Avoid redefinition of macros. 2002-12-11 13:12:30 +00:00
thread_sgi.h
thread_solaris.h
thread_wince.h
traceback.c This is my patch 2002-08-15 14:59:02 +00:00