tree-sitter.tree-sitter/crates
Will Lillis b53ddd3d54 perf(loader): extract name from grammar.json without regex
We have to pay the cost of compiling the regex at runtime, and the
`LazyLock` overhead for each access. The pattern is simple enough that
we can manually parse and extract.

`grammar_json_name` is now ~116x faster on cold start, ~5.6x faster warm
(after the regex has been compiled). Both are fast enough to not matter
much in practice, but some perf gains and eliminating global state is a
win.
2026-03-31 01:23:15 -04:00
..
cli fix(rust): correct various typos 2026-03-28 05:23:10 -04:00
config treewide: add taplo config and reformat toml files 2026-02-18 00:59:34 -05:00
generate fix(rust): correct various typos 2026-03-28 05:23:10 -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