mirror of https://github.com/zcash/halo2.git
Fix formatting of `halo2_proofs::multicore` comments
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
36055ab47d
commit
b90522797e
|
@ -14,8 +14,8 @@ minor version bump.
|
|||
`halo2` currently uses [rayon](https://github.com/rayon-rs/rayon) for parallel computation.
|
||||
The `RAYON_NUM_THREADS` environment variable can be used to set the number of threads.
|
||||
|
||||
You can disable [rayon] by disabling the ["multicore"] feature.
|
||||
Warning! Halo2 will lose access to parallelism if you disable the ["multicore"] feature.
|
||||
You can disable `rayon` by disabling the `"multicore"` feature.
|
||||
Warning! Halo2 will lose access to parallelism if you disable the `"multicore"` feature.
|
||||
This will significantly degrade performance.
|
||||
|
||||
## License
|
||||
|
|
|
@ -15,8 +15,8 @@ minor version bump.
|
|||
computation. The `RAYON_NUM_THREADS` environment variable can be used to set the number of
|
||||
threads.
|
||||
|
||||
You can disable [rayon] by disabling the ["multicore"] feature.
|
||||
Warning! Halo2 will lose access to parallelism if you disable the ["multicore"] feature.
|
||||
You can disable `rayon` by disabling the `"multicore"` feature.
|
||||
Warning! Halo2 will lose access to parallelism if you disable the `"multicore"` feature.
|
||||
This will significantly degrade performance.
|
||||
|
||||
## License
|
||||
|
|
|
@ -22,9 +22,9 @@ pub trait TryFoldAndReduce<T, E> {
|
|||
/// Implements `iter.try_fold().try_reduce()` for `rayon::iter::ParallelIterator`,
|
||||
/// falling back on `Iterator::try_fold` when the `multicore` feature flag is
|
||||
/// disabled.
|
||||
/// try_fold_and_reduce function can only be called by a iter with
|
||||
/// Result<T,E> item type because the folder_op Fn<T,T>->T must
|
||||
/// meet both trait bound of rayon's try_fold and try_reduce```
|
||||
/// The `try_fold_and_reduce` function can only be called by a iter with
|
||||
/// `Result<T, E>` item type because the `fold_op` must meet the trait
|
||||
/// bounds of both `try_fold` and `try_reduce` from rayon.
|
||||
fn try_fold_and_reduce(
|
||||
self,
|
||||
identity: impl Fn() -> T + Send + Sync,
|
||||
|
|
Loading…
Reference in New Issue