tree-sitter.tree-sitter/crates
Will Lillis 827bcdabd9 perf(cli): buffer stdout in parse and query output
Wrap stdout in a 64KB BufWriter when writing `parse` output. The tree
walking loop makes many small write calls (parentheses, indentation,
node kinds, ranges, etc.) which are expensive without buffering.

When parsing the jquery.js corpus file, cuts the total time roughly in
half. These savings only show when piping the result to a file,
otherwise terminal rendering time usually dominates, hiding all gains.

Also do the same for the `query` command's output.
2026-03-31 01:27:05 -04:00
..
cli perf(cli): buffer stdout in parse and query output 2026-03-31 01:27:05 -04:00
config treewide: add taplo config and reformat toml files 2026-02-18 00:59:34 -05:00
generate generate: remove comment cleaning for grammar.json 2026-03-31 01:23:15 -04:00
highlight fix(rust): correct various typos 2026-03-28 05:23:10 -04:00
language treewide: add taplo config and reformat toml files 2026-02-18 00:59:34 -05:00
loader perf(loader): extract name from grammar.json without regex 2026-03-31 01:23:15 -04:00
tags treewide: add taplo config and reformat toml files 2026-02-18 00:59:34 -05:00
xtask fix(rust): correct various typos 2026-03-28 05:23:10 -04:00