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

Increase performance by reducing lookups #1457

Merged
merged 19 commits into from May 13, 2024
Merged

Increase performance by reducing lookups #1457

merged 19 commits into from May 13, 2024

Conversation

SouthEndMusic
Copy link
Collaborator

@SouthEndMusic SouthEndMusic commented May 7, 2024

Fixes #1456. The main speedup is due to adding basin indices to the edge metadata, and precalculating vectors of the metadata of inflow and outflow edges of several node types.

@SouthEndMusic SouthEndMusic requested a review from evetion May 8, 2024 10:09
Copy link
Member

@evetion evetion left a comment

Choose a reason for hiding this comment

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

Nice to see such speedups! Most of my remarks are about readability, so I would also ask you to write in the description (which will turn into the commit message) why and how you did things. Can only be a few lines, but it should explain the changes to all nodes (now storing edges instead of node ids).

core/src/util.jl Outdated Show resolved Hide resolved
core/src/util.jl Outdated Show resolved Hide resolved
core/src/graph.jl Show resolved Hide resolved
core/src/graph.jl Outdated Show resolved Hide resolved
core/src/parameter.jl Outdated Show resolved Hide resolved
core/test/validation_test.jl Outdated Show resolved Hide resolved
core/src/util.jl Outdated Show resolved Hide resolved
core/src/parameter.jl Show resolved Hide resolved
core/src/solve.jl Outdated Show resolved Hide resolved
@SouthEndMusic SouthEndMusic merged commit 79f47fc into main May 13, 2024
24 checks passed
@SouthEndMusic SouthEndMusic deleted the even-more-perf branch May 13, 2024 13:39
@SouthEndMusic SouthEndMusic mentioned this pull request May 13, 2024
6 tasks
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.

Increase performance by reducing lookups
2 participants