Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ par-dfs Public

Parallel, serial, sync, and async DFS and BFS traversal for Rust

License

romnn/par-dfs

Repository files navigation

par-dfs

build status test status benchmarks crates.io docs.rs

Parallel, serial, and async DFS and BFS traversal iterators in Rust.

[dependencies]
par-dfs = "0"

Usage

For usage examples, check the examples and documentation.

Examples

cargo run --example async_fs --features async -- --path ./
cargo run --example sync_fs --features sync,rayon -- --path ./

Benchmarking

cargo install cargo-criterion
# full benchmark suite
cargo criterion --features full
# sync benchmarks only
cargo criterion --features sync -- sync
# dfs benchmarks only
cargo criterion --features full -- dfs

Benchmark reports are available here.

Acknowledgements

The rayon::iter::ParallelIterator implementation for the dynamically growing graph traversal is based on the amazing work in tavianator's blog post.

The implementation of futures_util::stream::Buffered also greatly helped in the design of the async streams.

About

Parallel, serial, sync, and async DFS and BFS traversal for Rust

Topics

Resources

License

Stars

Watchers

Forks

Languages