The code around milestones is inefficient. Thereare O(n2) algorithms that can be replaced with O(n) with a little thought.
In practice the number of cubs preset on the screen is going to be < 40 most of the time so there's generally no perceptable impact for the user most of the time. But still - it's ugly.
The code around milestones is inefficient. Thereare O(n2) algorithms that can be replaced with O(n) with a little thought.
In practice the number of cubs preset on the screen is going to be < 40 most of the time so there's generally no perceptable impact for the user most of the time. But still - it's ugly.