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

Single-precision STRtree #757

Closed
wants to merge 2 commits into from
Closed

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Dec 7, 2022

This PR generalizes Envelope and Interval to be constructed from any numeric type, and changes the IndexedPointInAreaLocator to use Interval<float>. I tested this with GEOSPreparedContains because past testing has shown this to be an area where shrinking the size of a tree node has a real benefit. And it does have an impact, but only about 10% in my testing. I'm not sure that's worth it, but maybe there's a more compelling application. Rounding a query envelope from double to float in a strictly enlarging way seems to pretty expensive.

@dbaston
Copy link
Member Author

dbaston commented Feb 16, 2023

Doesn't seem worth it for 5-10%.

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