-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
…, TRC, Manning, Outlet
There was a problem hiding this 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).
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.