E&S CVS Commit: PEAK - Small speedup (about 3/4ths of a second on my PC) of UML metamodel load.

pje at eby-sarna.com pje at eby-sarna.com
Sun Nov 17 10:13:01 EST 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sun Nov 17 15:12:58 UTC 2002

Modified Files:
	PEAK/src/peak/metamodels/xmi: Reading.py

Log Message:
Small speedup (about 3/4ths of a second on my PC) of UML metamodel load.

XMIMapMaker was doing a lot of unnecessary work to create the XMI map; of
the 9.5 seconds the profiler claims is UML model loading, 1.6 were spent
in XMIMapMaker.__init__!  Most of the remaining slowness is in calls to
'prepForSimulation()', so any significant further speedups will have to
come from translation of that and 'peak.utils.Code' to C.  Strangely, none
of this stuff is anywhere near as slow on Unix machines as it is on my
Windows PC.  So I guess we can wait before further optimizing.  But this
was a quick win, at least for the UMLModel test suite.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/xmi/Reading.py.diff?r1=1.28&r2=1.29

To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 PEAK/src/peak/metamodels/xmi/Reading.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