tree-sitter/cli/generate/src
Antonin Delpeuch 3bd8f7df8e perf: More efficient computation of used symbols
As the call to `symbol_is_used` does not depend
on the production, it is more efficient to call it
only once outside the loop over productions.

I'm not sure if `rustc` is able to do this optimization
on its own (it would need to know that the function
is pure, which sounds difficult in general).

(cherry picked from commit 36d93aeff3)
2025-07-10 09:25:22 +02:00
..
build_tables perf: reserve Vec capacities where appropriate 2025-07-09 22:33:57 -04:00
prepare_grammar perf: More efficient computation of used symbols 2025-07-10 09:25:22 +02:00
templates fix(lib): handle compiler warnings 2024-10-19 02:57:08 +00:00
dedup.rs feat: add 'reserved word' construct 2024-12-23 03:06:32 -05:00
dsl.js feat: support passing in a Rust regex in the grammar dsl 2025-01-06 20:52:19 -05:00
grammar_files.rs feat: move generate logic to its own crate 2024-09-27 17:04:21 -04:00
grammars.rs build: bump other crates' MSRV to 1.82 2025-01-12 04:47:59 -05:00
lib.rs fix(rust): adapt to new nightly lint 2025-03-06 18:25:24 -05:00
nfa.rs chore: a few minor lints 2025-01-21 00:57:58 -05:00
node_types.rs Fix 'extra' field generation for node-types.json 2025-07-07 21:58:47 -04:00
parse_grammar.rs perf: reserve Vec capacities where appropriate 2025-07-09 22:33:57 -04:00
render.rs perf: reserve Vec capacities where appropriate 2025-07-09 22:33:57 -04:00
rules.rs fix(rust): adapt to some new nightly lints 2025-03-02 23:20:08 +01:00
tables.rs feat: add 'reserved word' construct 2024-12-23 03:06:32 -05:00