# Run LSP response deserialization outside of main thread \(\#2635\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1f35ddc44e96855402f569a89c438f93d103ef8f

Requested commit: 1f35ddc44e96855402f569a89c438f93d103ef8f

Commit: 1f35ddc44e96855402f569a89c438f93d103ef8f

Tree: f3f80c9eca958c4412669004ddfd43bbbc1258e5

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Run LSP response deserialization outside of main thread (#2635)

Improves latency for big inlay hints LSP responses for ~8k line files.

Before, the CPU usage sample for editing a single line inside
`edirot.rs` file in Zed contained serde inside the main thread traces:

<img width="1728" alt="Screenshot 2023-06-21 at 00 33 23"
src="https://github.com/zed-industries/zed/assets/2690773/d9789efe-8055-487f-bbe7-8beb49605bcb">

Release Notes:

- N/A
```

## Parents

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

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

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