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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user