ellip-rayon

Crates.ioellip-rayon
lib.rsellip-rayon
version1.0.2
created_at2025-09-07 06:58:06.335589+00
updated_at2025-12-29 15:57:06.131281+00
descriptionCompute elliptic integrals in parallel
homepagehttps://github.com/p-sira/ellip
repositoryhttps://github.com/p-sira/ellip
max_upload_size
id1827879
size51,526
Sira Pornsiriprasert (p-sira)

documentation

https://docs.rs/ellip-rayon

README

Ellip Rayon

Parallelized elliptic integral computation for Rust based on Ellip.

Installation

cargo add ellip-rayon

Machine-specific Threshold

Ellip Rayon employs parallelization if the length of the arguments exceesds certain thresholds. These thresholds depend on the core count, cache size, and architecture. For the most efficiency, these thresholds should be tuned on the target machine.

  1. Generating benchmark data
cargo bench

The process should take about 30-40 minutes to complete, and the file benches/par_threshold.md will be created. This reports the threshold for each function.

  1. Using the generated threshold
cargo run --example generate_threshold_code

This script automatically replaces the thresholds in the source code.

  1. Adding locally compiled library From your working directory, run
cargo add --path path/to/your/ellip-rayon
Commit count: 792

cargo fmt