Skip to content

Conversation

Mritunjaii
Copy link
Contributor

Improve Performance #1074
https://github.com/AtsushiSakai/PythonRobotics/blob/ad600cd9023e67cd8064b678213d6586d076dd15/PathPlanning/AStar/a_star_searching_from_two_side.py#L80C1-L117C20

In the referenced function, the search for coordinates and neighbors in ob_list and neighbors occurs frequently, especially for long obstacles. This change optimizes the process by storing obstacles and neighbors in a set. Sets use a hashmap for lookups, significantly improving efficiency compared to linear search. This modification aims to enhance performance in scenarios with long obstacle lists by reducing the time complexity of lookups

@Mritunjaii
Copy link
Contributor Author

@AtsushiSakai bro plz check pr

@AtsushiSakai AtsushiSakai linked an issue Jan 20, 2025 that may be closed by this pull request
@AtsushiSakai AtsushiSakai merged commit 4c2e3e8 into AtsushiSakai:master Jan 20, 2025
8 checks passed
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.

Improve Performance

2 participants