[Orxonox-commit 600] r3132 - branches/netp4/src/network
rgrieder at orxonox.net
rgrieder at orxonox.net
Tue Jun 9 20:59:57 CEST 2009
Author: rgrieder
Date: 2009-06-09 20:59:57 +0200 (Tue, 09 Jun 2009)
New Revision: 3132
Modified:
branches/netp4/src/network/TrafficControl.cc
Log:
Extreme performance boost by copying an std::list only once instead of twice.
Modified: branches/netp4/src/network/TrafficControl.cc
===================================================================
--- branches/netp4/src/network/TrafficControl.cc 2009-06-09 18:37:42 UTC (rev 3131)
+++ branches/netp4/src/network/TrafficControl.cc 2009-06-09 18:59:57 UTC (rev 3132)
@@ -188,7 +188,7 @@
*/
void TrafficControl::updateClientListTemp(std::list<obj>& list)
{
- clientListTemp_[currentClientID][currentGamestateID] = std::list<obj>(list);
+ clientListTemp_[currentClientID][currentGamestateID] = list;
}
/**
More information about the Orxonox-commit
mailing list