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

Removing unnecessary allocations #83

Merged
merged 2 commits into from
Jan 5, 2025
Merged

Removing unnecessary allocations #83

merged 2 commits into from
Jan 5, 2025

Conversation

PTFOPlayer
Copy link
Contributor

Some instances of collect were unnecessary or redundant if the edges argument in add_obstacle is changed from Vec to impl IntoIterator<Item = Vec2>, as LineString can be directly constructed from an iterator.

On my machine (CPU: i5-12500H, 16 GB LPDDR5X 4800 MHz memory), this results in a speedup of 0.01s–0.02s when running tests

@PTFOPlayer
Copy link
Contributor Author

When running tests-aurora speedup is ~15s (232s -> 217s)

@mockersf
Copy link
Member

mockersf commented Jan 5, 2025

thanks!

@mockersf mockersf merged commit a9fa350 into vleue:main Jan 5, 2025
3 of 5 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.

2 participants