Pre-size coordinatesInTreeOrder and set to default values and use set each element at a location rather than using insert which forces resizing, which is not necessary.
Pre-size coordinatesInTreeOrder and set to default values and use set each element at a location rather than using insert which forces resizing, which is not necessary.

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core