Greatly decrease time to write catalog.xml by pulling THEME->GetMetricB out of the inner loop and passing it along to RadarValues. (Also don't copy the vector of Song*.) The time to generate the XNode for Songs was cut down by a fifth (from 2.5 seconds to .5 seconds for me, fully optimized).

This commit is contained in:
Steve Checkoway
2007-02-04 09:35:02 +00:00
parent e17ccc6bdb
commit 169d7c8b44
4 changed files with 33 additions and 26 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ struct RadarValues
return !operator==( other );
}
XNode* CreateNode() const;
XNode* CreateNode( bool bIncludeSimpleValues, bool bIncludeComplexValues ) const;
void LoadFromNode( const XNode* pNode );
RString ToString( int iMaxValues = -1 ) const; // default = all