Skip to content

Increase performance by reducing lookups#1457

Merged
SouthEndMusic merged 19 commits intomainfrom
even-more-perf
May 13, 2024
Merged

Increase performance by reducing lookups#1457
SouthEndMusic merged 19 commits intomainfrom
even-more-perf

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).

@SouthEndMusic SouthEndMusic requested a review from evetion May 13, 2024 13:05
@SouthEndMusic SouthEndMusic merged commit 79f47fc into main May 13, 2024
@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