E&S CVS Commit: PEAK - Fixed a performance problem with binding.Once introduced by my correctness

pje at eby-sarna.com pje at eby-sarna.com
Sun Feb 23 09:43:01 EST 2003


Module Name:	PEAK
Committed By:	pje
Date:		Sun Feb 23 14:42:14 UTC 2003

Modified Files:
	PEAK/src/peak/binding: _once.c _once.pyx

Log Message:
Fixed a performance problem with binding.Once introduced by my correctness
fix.  Apparently, if speed is your aim, you should not use module-level
variables in Pyrex to hold imported items.  Instead, define 'cdef' global
variables for them, and then assign the imported items to them.  'cdef'
vars don't require a dictionary lookup for access.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/binding/_once.c.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/binding/_once.pyx.diff?r1=1.2&r2=1.3

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/binding/_once.c \
    PEAK/src/peak/binding/_once.pyx

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list