Skip to content

Use binary search to replace linear search to improve OpenDRIVE loading#620

Merged
eknabevcc merged 1 commit intoesmini:devfrom
mljack:xodr_loading
Oct 23, 2024
Merged

Use binary search to replace linear search to improve OpenDRIVE loading#620
eknabevcc merged 1 commit intoesmini:devfrom
mljack:xodr_loading

Conversation

@mljack
Copy link
Copy Markdown
Contributor

@mljack mljack commented Oct 7, 2024

Optimize code speed for OpenDRIVE files with densely sampled in s.

roadmanager::Position::LoadOpenDrive("road.xodr")

@eknabevcc eknabevcc merged commit c87247f into esmini:dev Oct 23, 2024
@eknabevcc
Copy link
Copy Markdown
Collaborator

Nice! Thanks for contribution. I had to educate myself on std::upper_bound function, lambda details and BinaryPredicate. But now I'm confident. I think your approach is a good example and can be applied in more similar cases, eventually.

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.

2 participants