# Reduce intensity of refreshing pull diagnostics \(\#47510\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 38821a66a7ed2334c829dd54e96a8cefa8294492

Requested commit: 38821a66a7ed2334c829dd54e96a8cefa8294492

Commit: 38821a66a7ed2334c829dd54e96a8cefa8294492

Tree: d414128dd3ae7bc859b9d65c93f32733bc881b2f

Author: Conrad Irwin

Committer: GitHub

## Message

```
Reduce intensity of refreshing pull diagnostics (#47510)

Before this change we'd spawn N tasks in parallel on every keystroke,
afterwards
we only allow 1 background diagnostic refresh in flight at a time.

This also fixed a bug where we'd send O(n*2) pull diagnostic requests
when
re-opening a workspace with n editors.

Co-authored-by: John Tur <john-tur@outlook.com>

Closes #ISSUE

Release Notes:

- Improved performance when a large number of files were open by making
background diagnostics more efficient

---------

Co-authored-by: John Tur <john-tur@outlook.com>
```

## Parents

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

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