Skip to content

Conversation

@petern48
Copy link
Collaborator

@petern48 petern48 commented Jan 10, 2026

This is the second remaining follow-up to #476. The first was #493. This PR replaces the remaining instances and presents their performance improvements.

Additionally, this PR adds some missing code that is needed to bench aggregates in geos-functions.rs, including a new test for st_polygonize_agg. I didn't find I could actually optimize that function, but I decided to keep the code that added the bench for it for future convenience.

Here are the criterion benchmark results.

st_makevalid (-20% and -45% reduction) image
st_minimumclearanceline (-4.5% and 0% reduction) image
st_polygonize (-8% and -5% reduction) image
st_simplifypreservetopology (-3% and 0% reduction) image

Overlays:

st_intersection (-16.5% and -14.5% reduction) image
st_union (-33% and -75% reduction) image
st_difference (-7.5% and -6% reduction) image
st_symdifference (-11.5% and -74% reduction) image

… st_polygonize, st_simplifypreservetopology, and overlays (intersection, union, difference, symdifference)
…ate kernels in geos" because unneed and requires more work/tests

This reverts commit c614e46.
@petern48 petern48 requested a review from paleolimbot January 10, 2026 05:59
@petern48 petern48 marked this pull request as ready for review January 10, 2026 05:59
Copy link
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

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

Thank you on all counts!

@petern48 petern48 merged commit 9bf02f4 into apache:main Jan 11, 2026
15 checks passed
@petern48 petern48 deleted the write_geos_geometry_2 branch January 11, 2026 03:46
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