Opened 11 years ago

Last modified 5 years ago

#1860 new enhancement

[PATCH] Use a list for iterating in the ComponentManager — at Initial Version

Reported by: sbte Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords: patch
Cc: Patch:

Description

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.

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.

Change History (1)

Note: See TracTickets for help on using tickets.