Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: use std::unordered_map where possible in SceneManager #1083

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

adlarkin
Copy link
Contributor

@adlarkin adlarkin commented Oct 4, 2021

Signed-off-by: Ashton Larkin 42042756+adlarkin@users.noreply.github.com

Summary

When working on #1013, I noticed that the SceneManager keeps track of entity information via std::map. However, since order doesn't seem to matter in this context, it would be better to use std::unordered_map for faster lookup times.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
@adlarkin adlarkin requested a review from iche033 as a code owner October 4, 2021 17:31
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Oct 4, 2021
@chapulina chapulina added the performance Runtime performance label Oct 4, 2021
@adlarkin adlarkin merged commit 1eba508 into ign-gazebo3 Oct 5, 2021
@adlarkin adlarkin deleted the adlarkin/unordered_maps_scene_manager branch October 5, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel performance Runtime performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants