3 ms·
This is actually how glob matching is currently implemented in ripgrep: https://github.com/BurntSushi/ripgrep/blob/a9d97a1dda0a07a8e55b2aa9b95690a4634e4874/crat
by burntsushi 4y ago
This is actually how glob matching is currently implemented in ripgrep: https://github.com/BurntSushi/ripgrep/blob/a9d97a1dda0a07a8e55b2aa9b95690a4634e4874/crates/globset/src/glob.rs#L638-L733 https://github.com/BurntSushi/ripgrep/blob/a9d97a1dda0a07a8e...
Works quite well because it can take advantage of the host of optimizations inside the regex engine.