parallel-delaunay
Delaunay triangulation for a 2D point set. On the benchmark below this is about twice as fast as SciPy 1.18.1. Both curves have the same slope: O(n log n).
The kernel is Guibas and Stolfi's divide-and-conquer algorithm, compiled with Numba. An edge is an index into integer arrays, not an object: org[e] is the origin, onext[e] is the next edge counterclockwise around that origin, and the symmetric edge is e ^ 1 because each undirected edge occupies slots 2k and 2k+1. triangulate runs every leaf at once, then each round of independent merges, using prange. parallel=False runs the same kernel on one core.
Install
Python 3.11 or newer. From the repository root:
uv sync
Another uv project can add the package with uv add parallel-delaunay.
Tests
make test # pytest, including a triangle check against SciPy
make format # Ruff
Benchmark
uv run python triangulation_benchmarks.py
Each time below is the median of five runs against scipy.spatial.Delaunay. This library's column includes sorting the points. A ratio below 1 means this library was faster. parallel_benchmark.py compares the default prange path with parallel=False. The 2021 pure-Python chart is images/Figure 2021-07-02 210145.png.
| Points | This library | SciPy 1.18.1 | This library / SciPy |
|---|---|---|---|
| 1,000 | 0.9 ms | 1.7 ms | 0.5× |
| 2,511 | 1.8 ms | 4.2 ms | 0.4× |
| 6,309 | 4.3 ms | 11.0 ms | 0.4× |
| 15,848 | 12.0 ms | 29.8 ms | 0.4× |
| 39,810 | 35.3 ms | 84.0 ms | 0.4× |
| 100,000 | 129.5 ms | 261.9 ms | 0.5× |
Reference
Guibas, Leonidas and Stolfi, Jorge. "Primitives for the Manipulation of General Subdivisions and the Computation of Voronoi Diagrams." ACM Transactions on Graphics 4.2 (April 1985), pp. 74–123. doi:10.1145/282918.282923
Metadata
Release files for parallel-delaunay 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parallel_delaunay-2.0.0.tar.gz | 12.8 kB | Without provenance | Details for parallel_delaunay-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parallel_delaunay-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for parallel_delaunay-2.0.0-py3-none-any.whl |
Total release size: 29.6 kB
Release files / parallel_delaunay-2.0.0.tar.gz
| Download URL | parallel_delaunay-2.0.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ad26d9ba36e96c5f07191dd0eb8327c9a2da4f67c8ae28bd70664bc31405f00
|
|
BLAKE2b-256 checksum How to use checksums |
f306d33d5817af4947c169e7e558cb745c6286240f7d77c8029097811ca07c99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parallel_delaunay-2.0.0-py3-none-any.whl
| Download URL | parallel_delaunay-2.0.0-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93f3da75de5e2f439d0175eefc22db92b2855225b4f0139f8b3c848cc119aafe
|
|
BLAKE2b-256 checksum How to use checksums |
0d1387f0d71a458d71eb187d402edc76f6b57cf7784ff7d30a303d8c74b4ca46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for parallel-delaunay 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.