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

perf(lanelet2_extension): use std::unordered_set<>::find instead of std::find #244

Merged
merged 1 commit into from
May 17, 2024

Conversation

maxime-clem
Copy link
Contributor

@maxime-clem maxime-clem commented May 16, 2024

Description

use std::unordered_set<>::find instead of std::find to improve lookup speed.
See https://stackoverflow.com/questions/71062930/how-does-stdfind-works-with-stdset

Tests performed

Not applicable.

Effects on system behavior

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
@soblin soblin merged commit b92f64f into autowarefoundation:main May 17, 2024
14 checks passed
@maxime-clem maxime-clem deleted the perf/set-find branch May 17, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants