AST-grep Rewrote Tree-sitter's Core in Rust, Parsing Is 30% Faster
How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster
AST-grep rewrote Tree-sitter's C parsing core in Rust, with AI generating most of the code. Raw parsing throughput is up ~30%, and end-to-end ast-grep outline runs are 22% faster, at the cost of ~8 MiB more memory. The rewrite drops incremental parsing and WASM loading, targeting AI coding agents that analyze full file snapshots. The post notes an early version peaked above 1 GiB on a TypeScript stress corpus; the final build peaks at 91.2 MiB.
Why it matters: Concrete perf numbers and clear engineering tradeoffs hit H and K. But the audience is narrow, R is absent, so it lands at the featured threshold of 72. If later posts in the series deliver quality data on the AI-generated code, the score could go higher.