Skip to content

Use firedrake-rtree for spatial indexing#4981

Open
leo-collins wants to merge 42 commits intomainfrom
leo/rust-rstar
Open

Use firedrake-rtree for spatial indexing#4981
leo-collins wants to merge 42 commits intomainfrom
leo/rust-rstar

Conversation

@leo-collins
Copy link
Copy Markdown
Contributor

@leo-collins leo-collins commented Mar 20, 2026

Description

Use firedrake-rtree for spatial indexing.

  • This is an order of magnitude faster than libspatialindex for querying points.
  • We can now build a one dimensional spatial index, allowing us to remove a whole load of special-cased code.
  • We can now access the nodes of the tree and manually traverse it. This will be used to build a distributed rtree which will allow us to use sparse communication operations to build the VertexOnlyMesh, instead of the expensive allgathers we use currently.

Comment thread firedrake/locate.c Outdated
Comment thread setup.py
Comment thread setup.py Outdated
Copy link
Copy Markdown
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Just tiny things. I think this is great and 99% ready.

Comment thread firedrake/cython/rtree.pyx
Comment thread firedrake/cython/rtreeinc.pxi Outdated
Comment thread firedrake/mesh.py Outdated
docstrings

more comments
@leo-collins leo-collins requested a review from connorjward April 16, 2026 10:36
Copy link
Copy Markdown
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Otherwise this looks good to go.

What's the status of firedrake-rtree? At a minimum you need to add some more people as owners of the PyPI package.

Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread requirements-build.txt Outdated
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants