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

[SEDONA-366] Fix performance issue of RS_Count #1042

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

Kontinuation
Copy link
Member

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

The current implementation of RS_Count calls GridCoverage2D.evaluate for each pixel, which calls getTile method for each pixel. This is very slow for some implementations of RenderedImage. In this patch, we get the raster of the image and iterate through the samples, which is much faster.

How was this patch tested?

Passes existing tests.

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the docs.

@jiayuasu jiayuasu merged commit 0ab5cd6 into apache:master Oct 2, 2023
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants