# Track dirtyness per item \(\#26237\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f373383fc17e09931885c2b9dd26bba361f3ad62

Requested commit: f373383fc17e09931885c2b9dd26bba361f3ad62

Commit: f373383fc17e09931885c2b9dd26bba361f3ad62

Tree: 5e1252a2f77d906b7b68ec9a4ed7d92a1b8f31e5

Author: Conrad Irwin

Committer: GitHub

## Message

```
Track dirtyness per item (#26237)

This reduces the number of multibuffer syncs when starting the editor
with 80
files open in the Zed repo from 10,000,000 to 100,000 by avoiding
O(n**2)
dirtyness checks.

Release Notes:

- Fixed a beachball when restarting in a large repo with a large number
open files
```

## Parents

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

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