Skip to content

Conversation

@mabdazzam
Copy link
Contributor

This PR refactors the r.curvenumber addon from Python to C to improve performance.
During a project, the current Python version was used on a nominal sized region (nrows = 47104, ncols = 36785) and /usr/bin/time reported that wall-clock time was 1h33m52s, whereas this C implementation took 1m37.69s (a speedup of ~57.6x).
The module interface and outputs are unchanged; only the implementation has been ported to C.

@mabdazzam
Copy link
Contributor Author

@petrasovaa could you please take a look?

Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

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

Great improvement, the tests pass so this is good to go!

@petrasovaa petrasovaa merged commit 004400c into OSGeo:grass8 Dec 1, 2025
7 checks passed
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