[commit] r1579 - trunk/GME/XmlBackEnd
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Oct 3 16:06:14 CDT 2011
Author: ksmyth
Date: Mon Oct 3 16:06:14 2011
New Revision: 1579
Log:
TODOs
Modified:
trunk/GME/XmlBackEnd/CoreXmlFile.cpp
Modified: trunk/GME/XmlBackEnd/CoreXmlFile.cpp
==============================================================================
--- trunk/GME/XmlBackEnd/CoreXmlFile.cpp Mon Oct 3 16:06:04 2011 (r1578)
+++ trunk/GME/XmlBackEnd/CoreXmlFile.cpp Mon Oct 3 16:06:14 2011 (r1579)
@@ -424,7 +424,6 @@
m_value.clear();
else
{
- // TODO: optimize this code
int len = strlen(str)/2;
unsigned char * buff = new unsigned char[len];
string2bin( str, buff );
@@ -539,6 +538,8 @@
void XmlObject::createAttributes(ICoreMetaObject *metaobject, int attrSet )
{
+ // TODO: memoize
+
ASSERT( metaobject != NULL );
ASSERT( attrSet>=ATTR_PRIMARY && attrSet<=ATTR_ALL );
@@ -561,6 +562,7 @@
attrid_type attrId = ATTRID_NONE;
COMTHROW( (*i)->get_AttrID(&attrId) );
ASSERT( attrId != ATTRID_NONE );
+ // TODO: remove indirection from AttribMap::value_type::value (too many mallocs)
m_attributes.insert( AttribMap::value_type(attrId,XmlAttrBase::create(valtype)) );
}
}
@@ -3732,6 +3734,7 @@
CComBSTR attribToken;
COMTHROW( metaobject->get_Attribute( it2->first, PutOut(metaAttrib) ) );
+ // TODO: memoize
COMTHROW( metaAttrib->get_Token( &attribToken ));
// see http://escher.isis.vanderbilt.edu/JIRA/browse/GME-152
More information about the gme-commit
mailing list