# worktree: Don't open files \>= 6GB in size \(\#27458\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 76192ea93cdad3e9276607de2f60bc3b0a82beea

Requested commit: 76192ea93cdad3e9276607de2f60bc3b0a82beea

Commit: 76192ea93cdad3e9276607de2f60bc3b0a82beea

Tree: e2703397a8853bae5e48a5f04b322588b3a546fa

Author: Ben Kunkle

Committer: GitHub

## Message

```
worktree: Don't open files >= 6GB in size (#27458)

Temporary Workaround For: #27283

This PR can (and should!) be reverted once the underlying inefficiencies
are resolved

Release Notes:

- Files that are 6GB or larger will now not open. This is a temporary
workaround for inefficient handling of large files resulting in
extremely high memory usage, often resulting in system freezing,
requiring a restart of Zed or the entire system.
```

## Parents

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

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