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

Add support for array-based bulk insert #340

Merged
merged 7 commits into from
Dec 13, 2024

Conversation

FreddieWitherden
Copy link
Contributor

This is the counterpart to libspatialindex/libspatialindex#267

@FreddieWitherden
Copy link
Contributor Author

Test failures are expected as it depends on new functionality for libspatialindex. For my case of inserting ~1 million points time goes from ~6s to ~1s.

@hobu
Copy link
Member

hobu commented Dec 9, 2024

These tests should be resilient to different versions of libspatialindex. Rtree releases are not pinned to specific libspatialindex releases.

@FreddieWitherden
Copy link
Contributor Author

These tests should be resilient to different versions of libspatialindex. Rtree releases are not pinned to specific libspatialindex releases.

Have updated the PR so we catch the exceptions. Does this approach seem reasonable (assuming it checks out test wise?)

@FreddieWitherden
Copy link
Contributor Author

Just a short note about the implementation: the inputs for this are required to be NumPy arrays however I've been careful to not import NumPy so it is not a dependency of the library. This should be reasonably flexible and anyone looking to seriously take advantage of the bulk capabilities really needs to be using NumPy (or a compatible alternative) anyway.

@hobu hobu merged commit 7775fdd into Toblerity:master Dec 13, 2024
20 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