# extensions: Don't recompile Tree-sitter parsers when up-to-date \(\#43442\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e6214b2b718fc91e057d7dc00da8eae8646cd15c

Requested commit: e6214b2b718fc91e057d7dc00da8eae8646cd15c

Commit: e6214b2b718fc91e057d7dc00da8eae8646cd15c

Tree: 05641833bd60de6bb73831e91b85d5411bbc4729

Author: Kian Kasad

Committer: GitHub

## Message

```
extensions: Don't recompile Tree-sitter parsers when up-to-date (#43442)

When installing local "dev" extensions that provide tree-sitter
grammars, compiling the parser can be quite intensive[^anecdote]. This
PR changes the logic to only compile the parser if the WASM object
doesn't exist or the source files are newer than the object (just like
`make(1)` would do).

[^anecdote]: The tree-sitter parser for LLVM IR takes >10 minutes to
compile and uses 20 GB of memory on my laptop.

Release Notes:

- N/A

---------

Co-authored-by: Finn Evers <finn.evers@outlook.de>
```

## Parents

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

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