# git: Skip setting language on git index buffer \(\#47524\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3d4582d4dc9145270650e12f9ce5a534b888f4a2

Requested commit: 3d4582d4dc9145270650e12f9ce5a534b888f4a2

Commit: 3d4582d4dc9145270650e12f9ce5a534b888f4a2

Tree: d4b8d79b98e17ec28120920ee2ca23c3b2be468f

Author: Jakub Konka

Committer: GitHub

## Message

```
git: Skip setting language on git index buffer (#47524)

Skipping setting the language on the git index text buffer improves
snappiness for (very) large git diff multibuffers and also significantly
lower peak and steady-state RSS. When tested on the chromium repo with
`git reset HEAD~1000` and *all* language extensions installed we notice:
* current `main`: peak RSS ~45GB, ss RSS ~39GB
* this patch: peak RSS ~30GB, ss RSS ~27GB

Release Notes:

- Improved memory usage of large git diff multibuffers.
```

## Parents

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

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