Changes between Version 1 and Version 2 of Ticket #466
- Timestamp:
- Oct 31, 2016, 4:00:24 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #466 – Description
v1 v2 1 1 For performance, change CoordSets from vector to map. As per T.G.: 2 2 3 I think finding a coordinate set from its id needs to be a map lookup rather than scanning the vector of potentially thousands of coordinate sets. For instance if I cycle through every coordinate set (for instance to compute crosslink lengths) then I end up looking up every single coordinate set id and with a vector scan it takes order N ^2time where N might be 10,000 coordinate frames. It’s not a problem with my current 1000 coordinate set ensembles.3 I think finding a coordinate set from its id needs to be a map lookup rather than scanning the vector of potentially thousands of coordinate sets. For instance if I cycle through every coordinate set (for instance to compute crosslink lengths) then I end up looking up every single coordinate set id and with a vector scan it takes order N squared time where N might be 10,000 coordinate frames. It’s not a problem with my current 1000 coordinate set ensembles.