# Compile tree-sitter with opt-level 3 in dev profile \(\#53385\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f18a40472f913e81bdd33a1f7daf960d9d093dea)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f18a40472f913e81bdd33a1f7daf960d9d093dea

Requested commit: f18a40472f913e81bdd33a1f7daf960d9d093dea

Commit: f18a40472f913e81bdd33a1f7daf960d9d093dea

Tree: a8bf0e6cd394c2c4fcc7e01072985a610deab95d

Author: Lukas Wirth

Committer: GitHub

## Message

```
Compile tree-sitter with opt-level 3 in dev profile (#53385)

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 ...
```

## Parents

- [252e850779d25703c2deb411e42ee9d5b705b537](https://git.cafe/gitcafe/zed/commit/252e850779d25703c2deb411e42ee9d5b705b537?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f18a40472f913e81bdd33a1f7daf960d9d093dea?format=markdown)
