Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::vector::reserve in Element::Clone
There are several for-loops in Element::Clone that call std::vector::push_back, and since the vector size is known in advance, use std::vector::reserve to avoid multiple vector resizes. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
- Loading branch information