Repository navigation
feat: migrate skyborn-plot C cores to unified Pure-Rust skybornplot._plot_rs - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_ncl_curly_core,_contour_core,contour_arrows_core) into a unified Pure-Rust Cargo workspace (rust/skybornplot-core+rust/skybornplot-py->skybornplot._plot_rs) with PyO3 (0.30),numpy(0.30), and Rayon (1.12) parallelism.trace_ncl_glyphs_batch(Rayon-parallel curly-vector glyph tracing wired intovector.py/_core/vector_engine.pywith fallback preserved) andbuild_swept_arrow_segments(wired into_core/contour_arrows.py).nclcurly_core/_ncl_curly_core.py,contour_core/_contour_core.py,_core/contour_arrows_core.py).setup.pyintoc_ref/(excluded from wheels and sdists via[tool.maturin] exclude), switches packaging tomaturin>=1.0,<2.0(0.2.0), addstools/with_ramdisk.sh, and updates.github/workflows/{ci,build-wheels}.yml.Verification Highlights
26/26skybornplot-coreunit tests passing,0warnings underRUSTDOCFLAGS="-D warnings" cargo doc --workspace --exclude skybornplot-py --no-depsandcargo check --release -p skybornplot-py.--profile distwheel (426,517bytes) andmaturin sdist(103,320bytes) verified with0c_ref/,.c,meson.build,setup.py,__pycache__, or.pycentries.448 passed, 1 skipped (test_curly_vector_with_transform), 0 failed, including12/12intests/test_rust_parity.py.0.000e+00) and float64 paritymax_abs <= 1.705e-13(max_rel <= 4.322e-15).curly_vector(181x360): 2.88x end-to-end speedup (49.85 msvs143.57 ms, Peak RSS176.75 MiBvs177.83 MiB); 4,000-seed batch kernel 13.15x faster (4.62 msvs60.72 ms).scatter(..., placement='cells')on 181x360, 4.68M candidates): 2.24x end-to-end speedup (170.32 msvs381.27 ms) with parity Peak RSS (484.48 MiBvs482.33 MiB).arrow_contour181x360): 1.53x end-to-end speedup (58.38 msvs89.15 ms), and 21.42x speedup on the 400x200 swept polyline kernel (12.11 msvs259.26 ms).