4 ms·
ast-grep is based on tree-sitter parsers and most of the time is spent on parsing. There is some optimization to [skip parsing](https://github.com/ast-grep/ast
by herrington_d 2y ago
ast-grep is based on tree-sitter parsers and most of the time is spent on parsing.
There is some optimization to [skip parsing](https://github.com/ast-grep/ast-grep/blob/9f8ed5fb2abf35d9280a05b17ed49c888f5a9aad/crates/cli/src/utils.rs#L216-L233 https://github.com/ast-grep/ast-grep/blob/9f8ed5fb2abf35d928...) but generally I don't expect ast-grep can beat ripgrep or amber. (but sometimes ast-grep can beat grep due to parallel processing)