Skip to content

RoNode: read-only parallelization with minimal overhead

Compare
Choose a tag to compare
@dginev dginev released this 14 Apr 21:10
· 88 commits to master since this release

Introducing a rayon-compatible primtive, RoNode, which allows for parallel read-only document scans. See #53 for details

Example use:

fn dfs_parallel_count(node: RoNode) -> i32 {
  1 + node
    .get_child_nodes()
    .into_par_iter()
    .map(dfs_parallel)
    .sum::<i32>()
}