Skip to content

Conversation

@tachophobia
Copy link

Rewrite the priority-flood core to eliminate Python-level iteration and typedlist overhead: replaced them with vectorized edge processing and compact Numba-friendly structures. The algorithm’s control flow remains identical, but hotspot loops and data handling are now optimized for near-minimal overhead under JIT compilation. Delivered over 10x speedup on large DEMs for my use case.

Rewrite the priority-flood core to eliminate Python-level iteration and typedlist overhead: replaced them with vectorized edge processing and compact Numba-friendly structures. The algorithm’s control flow remains identical, but hotspot loops and data handling are now optimized for near-minimal overhead under JIT compilation. Delivered over 10x speedup on large DEMs for my use case.
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.

1 participant