# zed: Allocate more rayon threads depending on available parallelism \(\#43235\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1ce58a88ccdfb7e45106d66fa44c9db35b4f94b9

Requested commit: 1ce58a88ccdfb7e45106d66fa44c9db35b4f94b9

Commit: 1ce58a88ccdfb7e45106d66fa44c9db35b4f94b9

Tree: 5ed4c47d750b32fd364e93739edad68aa816c967

Author: Lukas Wirth

Committer: GitHub

## Message

```
zed: Allocate more rayon threads depending on available parallelism (#43235)

While zed itself is not a heavy user of rayon, wasmtime is, especially
for compilation. This change is similar to the rayon default but we
halve the number of threads still so we don't spawn too many threads
overall.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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