News Score: Score the News, Sort the News, Rewrite the Headlines

How ast-grep Rewrote Tree-sitter in Rust and Made It 30% Faster

Part 1 of 4 — the complete adventureast-grep rewrote Tree-sitter's C core in Rust, with AI writing the code. The new core is faster at parsing, faster at reading the completed tree, and faster in ast-grep itself. (The title's “30%” is the parser-only number; end-to-end, ast-grep runs about 22% faster.)Source repository: HerringtonDarkholme/tree-sitter.Two quick introductions before the numbers. ast-grep — the structural code-search tool this blog belongs to — searches code by syntax rather than ...

Read more at astgrep.com

© News Score  score the news, sort the news, rewrite the headlines