Message40139
This is stuff I've had sitting around for a while.
I was attempting to improve performance in
some paths.
* Most of the changes are from a loop -> memset.
* intobject changes are to initialize small ints at
startup,
so smallints don't have to be checked for each new int
* other misc very small clean-ups
Please review and test to see if there are any
problems. Also feedback whether this improves
performance for various platforms (tested on Linux)
or if this patch is even worth it.
Files modified are: Include/intobject.h
Python/{ceval,pythonrun}.c
Objects/{tuple,list,int,frame,}object.c
All changes are independant, except for the int changes
which affect: Include/intobject.h, Python/pythonrun.c,
and Objects/intobject.c.
It may also be useful to define the small negative int
(NSMALLNEGINTS) to be 5 or so instead of 1. There are
several uses -2, -3, ... in the standard library. |
|
Date |
User |
Action |
Args |
2007-08-23 15:13:25 | admin | link | issue561244 messages |
2007-08-23 15:13:25 | admin | create | |
|