Skip to main content

Module native_parallel_pow_generator

Module native_parallel_pow_generator 

Source
Expand description

Multi-core PoW search for non-WASM targets.

Each run_chunk call runs on a tokio::task::spawn_blocking thread; the shared crate::tools::pow_generator::pow_generator::run_pool dispatcher fires pool_size() of them concurrently and refeeds whichever slot completes first. With homogeneous server cores this is roughly equivalent to the previous rayon fan-out; on heterogeneous CPUs (Apple Silicon P+E, Intel hybrid) it stops fast cores from idling while a slow core finishes its slice.

Structsยง

NativeParallelPowGenerator