Cargo.toml 🔗
@@ -899,6 +899,7 @@ syn = { opt-level = 3 }
proc-macro2 = { opt-level = 3 }
# proc-macros end
+tree-sitter = { opt-level = 3 }
taffy = { opt-level = 3 }
resvg = { opt-level = 3 }
wasmtime = { opt-level = 3 }
Lukas Wirth created
tree-sitter query compilation (used to set up language grammars) is a
significant bottleneck in test setup. Profiling showed rust_lang()
creation taking ~270ms per test in dev builds, with nearly all time
spent in tree-sitter's query compiler.
With opt-level = 3, this drops to ~63ms locally — a 4x speedup on that
step. Across hundreds of tests that create language grammars (vim,
editor, collab, etc.), this ought to save substantial CI time.
Release Notes:
- N/A or Added/Fixed/Improved ...
Cargo.toml | 1 +
1 file changed, 1 insertion(+)
@@ -899,6 +899,7 @@ syn = { opt-level = 3 }
proc-macro2 = { opt-level = 3 }
# proc-macros end
+tree-sitter = { opt-level = 3 }
taffy = { opt-level = 3 }
resvg = { opt-level = 3 }
wasmtime = { opt-level = 3 }