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-386] Cache serialized CRS to speedup serialization of RasterUDT values #1009

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

Kontinuation
Copy link
Member

@Kontinuation Kontinuation commented Sep 7, 2023

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

Currently, GridCoverage2D objects are serialized using Java serializer, which is painfully slow. It proved to be a bottleneck of various raster processing jobs.

We found that the serialization of CRS objects is a performance hit. We found that the number of distinct CRS objects won't be large throughout the entire raster dataset, so we cache the compressed serialized CRS objects and reuse them.

How was this patch tested?

Passing existing tests. We've also added several new tests and refactored some 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.

@Kontinuation Kontinuation changed the title [Speedup map algebra and some band operations [SEDONA-386] Reimplement GridCoverage2D serializer using Kryo Sep 7, 2023
@Kontinuation Kontinuation marked this pull request as ready for review September 8, 2023 00:20
@Kontinuation Kontinuation force-pushed the kryo-serde-for-raster branch 2 times, most recently from 491e3e6 to 70fe336 Compare September 11, 2023 07:50
@Kontinuation Kontinuation changed the title [SEDONA-386] Reimplement GridCoverage2D serializer using Kryo [SEDONA-386] Cache serialized CRS to speedup serialization of RasterUDT values Sep 11, 2023
@Kontinuation Kontinuation deleted the kryo-serde-for-raster branch September 11, 2023 09:10
@Kontinuation Kontinuation restored the kryo-serde-for-raster branch September 11, 2023 09:11
@Kontinuation Kontinuation reopened this Sep 11, 2023
@jiayuasu jiayuasu added this to the sedona-1.5.0 milestone Sep 11, 2023
@jiayuasu jiayuasu merged commit deeb828 into apache:master Sep 11, 2023
78 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