diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-10-04 20:22:13 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-10-04 20:28:56 -0400 |
commit | 175406df01c704d557715b6f558f1624f9e8aaf9 (patch) | |
tree | 83b4edfbf25becc598a4e6aeafece2ed362b931e /tests | |
parent | 89811d43d4239053bafef15f9f13acd9e8986bab (diff) |
Refactor and test glob sets.
This commit goes a long way toward refactoring glob sets so that the
code is easier to maintain going forward. In particular, it makes the
literal optimizations that glob sets used a lot more structured and much
easier to extend. Tests have also been modified to include glob sets.
There's still a bit of polish work left to do before a release.
This also fixes the immediate issue where large gitignore files were
causing ripgrep to slow way down. While we don't technically fix it for
good, we're a lot better about reducing the number of regexes we
compile. In particular, if a gitignore file contains thousands of
patterns that can't be matched more simply using literals, then ripgrep
will slow down again. We could fix this for good by avoiding RegexSet if
the number of regexes grows too large.
Fixes #134.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 62fc55a0..d27db8ce 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -659,7 +659,6 @@ clean!(regression_30, "test", ".", |wd: WorkDir, mut cmd: Command| { } wd.create_dir("vendor"); wd.create("vendor/manifest", "test"); - cmd.arg("--debug"); let lines: String = wd.stdout(&mut cmd); let expected = path("vendor/manifest:test\n"); |