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 /Cargo.lock | |
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 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -82,8 +82,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" name = "globset" version = "0.1.0" dependencies = [ + "aho-corasick 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.1.77 (registry+https://github.com/rust-lang/crates.io-index)", ] |