Changes between Initial Version and Version 3 of Ticket #1860


Ignore:
Timestamp:
Mar 16, 2013, 8:32:28 PM (10 years ago)
Author:
sbte
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1860

    • Property Summary [PATCH] Use a list for iterating in the ComponentManager[PATCH] Use a vector for iterating in the ComponentManager
  • Ticket #1860 – Description

    initial v3  
    1 Using a list in the ComponentManager instead of a map speeds up iterating considerably. It gives me a speedup of 1ms in Gambia River (14ms->13ms) for the sim interpolation. This, however, is not the only place where the code is called, so the overall speedup might be bigger.
     1Using a vector in the ComponentManager instead of a map speeds up iterating considerably. It gives me a speedup of 4ms in Gambia River (14ms->10ms) for the sim interpolation. This, however, is not the only place where the code is called, so the overall speedup might be bigger.
    22
    3 The downside is that you have to keep both a map and a list of the Components, but since those are just pointers, I don't think it is a problem.
     3The downside is that you have to keep both a map and a vector of the Components, but since those are just pointers, I don't think it is a problem.
    44
     5(I edited the description for the vector version of the patch. This is much faster than the list version.)