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

feat(dfs): make DFS more efficient by using IndexMap rather than Vec #553

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samueltardieu
Copy link
Collaborator

This causes an API change as using an IndexMap requires the type to implement Hash.

Copy link

codspeed-hq bot commented Mar 24, 2024

CodSpeed Performance Report

Merging #553 will degrade performances by 11.93%

Comparing better-dfs (884e7d5) with main (1ef8a9a)

Summary

⚡ 2 improvements
❌ 2 regressions
✅ 30 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main better-dfs Change
fill-corner_to_corner_dfs 15.1 ms 7.7 ms +94.57%
fill-corner_to_corner_dijkstra 7.2 ms 8.1 ms -11.93%
corner_to_corner_dfs 187.1 ms 8.1 ms ×23
no_path_dijkstra 7.1 ms 8.1 ms -11.76%

This requires an API change as using an `IndexSet` requires the type to
implement `Hash`.
@samueltardieu samueltardieu force-pushed the better-dfs branch 3 times, most recently from d111bba to 884e7d5 Compare March 24, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant