Add parallel recursive directory iterator.

This adds a new walk type in the `ignore` crate, `WalkParallel`, which
provides a way for recursively iterating over a set of paths in parallel
while respecting various ignore rules.

The API is a bit strange, as a closure producing a closure isn't
something one often sees, but it does seem to work well.

This also allowed us to simplify much of the worker logic in ripgrep
proper, where MultiWorker is now gone.
This commit is contained in:
Andrew Gallant
2016-11-05 21:44:15 -04:00
parent 1aeae3e22d
commit b272be25fa
11 changed files with 1506 additions and 479 deletions

View File

@@ -25,7 +25,6 @@ path = "tests/tests.rs"
[dependencies]
ctrlc = "2.0"
deque = "0.3"
docopt = "0.6"
env_logger = "0.3"
grep = { version = "0.1.3", path = "grep" }