Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplify loops on sets
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Sun, 19 Nov 2017 19:40:27 +0000 (20:40 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Sun, 19 Nov 2017 19:40:27 +0000 (20:40 +0100)
commitf95d001733819381a8b927263af8925c6cb581c4
tree0bcb6fe61cad001b6155d09794ce597cbb43bc0f
parentd520bc81a1d0131736343cd414a0227bf5b624ff
simplify loops on sets

according to
https://stackoverflow.com/questions/15433381/performance-of-piter-cont-end-in-for-loop
not precomputing the value of end() can even lead to better performance.

if agreed by the c++ gurus of SimGrid, this change could be applied to
many other places in the code.
src/surf/network_interface.cpp
src/surf/surf_interface.cpp