Opened 18 years ago
Closed 18 years ago
#3 closed defect (fixed)
strange behaviour with Cube::setCubeStats()
Reported by: | Matthew Whiting | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | component1 | Version: | |
Severity: | normal | Keywords: | |
Cc: |
Description
The run-time for setCubeStats seems anomalous compared to setCubeStatsOld -- why does it take longer when it should be quicker, due to less iterations and sortings?
Note: See
TracTickets for help on using
tickets.
This seems to be solved with the changes in [212].
There is now little difference in the running time between the two versions of setCubeStats, and the memory usage is less with the new version (due to more efficient use of arrays). The cause of the slower times previously may have been due to the old sorting algorithm -- the main change has been to use the STL sort function, which behaves more robustly.