halo2_base::gates::flex_gate::threads

Function parallelize_core

Source
pub fn parallelize_core<F, T, R, FR>(
    builder: &mut SinglePhaseCoreManager<F>,
    input: Vec<T>,
    f: FR,
) -> Vec<R>
where F: ScalarField, T: Send, R: Send, FR: Fn(&mut Context<F>, T) -> R + Send + Sync,
Expand description

Utility function to parallelize an operation involving Contexts.