Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4778 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Jul 2, 2005, 8:57:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: not Saving the BaseObjects anymore, now the ClassList is 10 times faster
it used 7% of the process-time of orxonox (kprof-analysis) now it only takes .7%, i hope this is good enough

Location:
orxonox/trunk/src/lib/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/base_object.cc

    r4747 r4778  
    4141    this->loadParams(root);
    4242
    43   ClassList::addToClassList(this, this->classID, "BaseObject");
     43//  ClassList::addToClassList(this, this->classID, "BaseObject");
    4444}
    4545
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4761 r4778  
    4444/**
    4545   \brief standard deconstructor
    46 
    4746*/
    4847ClassList::~ClassList ()
     
    123122    while (likely(tmp != NULL))
    124123    {
    125       if (tmp->classID == classID || (classID == CL_NULL && tmp->classID == CL_BASE_OBJECT))
     124      if (tmp->classID == classID || classID == CL_NULL)
    126125      {
    127126        tIterator<BaseObject>* iterator = tmp->objectList->getIterator();
     
    164163    while (likely(tmp != NULL))
    165164    {
    166       if (tmp->classID == classID || (classID == CL_NULL && tmp->classID == CL_BASE_OBJECT))
     165      if (tmp->classID == classID || classID == CL_NULL)
    167166      {
    168167        tIterator<BaseObject>* iterator = tmp->objectList->getIterator();
Note: See TracChangeset for help on using the changeset viewer.