You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added Machine-Prime, simplified nearest_prime
Added the low-memory variant of Machine-prime (using a modified BPSW test) as an optional dependency. The Criterion benchmark shows that it is approximately 16x faster than the existing version.
Simplified the next and previous_prime functions
* cargo fmt
* Rename feature to `fast_test`
* Add the `fast_test` feature to docs
* Remove commented code
* Correct placement of whitespace
* Use a typed stride to ensure that `stride` is only ever 1 or `u64::MAX`
* Sentences start with capital letters
* Add changes to log
---------
Co-authored-by: JASory <[email protected]>
Copy file name to clipboardExpand all lines: src/lib.rs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,8 @@
97
97
//! `zerocopy`: derives the [`IntoBytes`](zerocopy::IntoBytes) trait from the [`zerocopy`] crate for the [`Primes`] struct.
98
98
//!
99
99
//! `rkyv`: derives the [`Serialize`](rkyv::Serialize), [`Deserialize`](rkyv::Deserialize), and [`Archive`](rkyv::Archive) traits from the [`rkyv`] crate for the [`Primes`] struct.
100
+
//!
101
+
//! `fast_test`: speeds up primality testing significantly by using the [`machine-prime`](https://crates.io/crates/machine-prime) crate.
0 commit comments