E&S CVS Commit: PEAK - 4X speedup for peak.model attribute reads. Unfortunately, they still can

pje at eby-sarna.com pje at eby-sarna.com
Sun Feb 23 16:25:00 EST 2003

Module Name:	PEAK
Committed By:	pje
Date:		Sun Feb 23 21:24:02 UTC 2003

Modified Files:
	PEAK/src/peak/binding: components.py
	PEAK/src/peak/metamodels/UML13/Foundation: Core.py
	PEAK/src/peak/metamodels/tests: General.py
	PEAK/src/peak/model: elements.py features.py

Log Message:
4X speedup for peak.model attribute reads.  Unfortunately, they still can
be as much as 40x slower than regular Python attributes.  :(  There's
probably more that could be shaved out, if I write some more Pyrex code.

This change affects how derived attributes are defined: now you override
the 'get()' method instead of '_getList()', which is a lot clearer.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.81 -r1.82 PEAK/src/peak/binding/components.py
cvs rdiff -r1.3 -r1.4 PEAK/src/peak/metamodels/UML13/Foundation/Core.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/metamodels/tests/General.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/model/elements.py \

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