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

Optimise Bellman-Ford implementation #62

Merged
merged 3 commits into from
Jul 4, 2023

Conversation

hauleth
Copy link
Contributor

@hauleth hauleth commented Dec 12, 2022

  • Reduce amount of required traversals
  • Remove expensive recomputation of weights (do it once beforehand)
  • Optimise search for negative cycles
  • Optimise fetching data from the distances map

- Reduce amount of required traversals
- Remove expensive recomputation of weights (do it once beforehand)
- Optimise search for negative cycles
- Optimise fetching data from the distances map
Copy link
Owner

@bitwalker bitwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This definitely needed some attention, it got merged without much review originally

@bitwalker bitwalker merged commit 72aee75 into bitwalker:main Jul 4, 2023
@hauleth hauleth deleted the perf/bellman-ford-implementation branch July 4, 2023 20:39
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