# Optimize fs_watcher to use less RAM by doing less work \(\#39602\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6da5945cd2dce13d24747fb42c146d357cf3a21c

Requested commit: 6da5945cd2dce13d24747fb42c146d357cf3a21c

Commit: 6da5945cd2dce13d24747fb42c146d357cf3a21c

Tree: 49a3924a4479c47cc42948d63b42cbc9def30c94

Author: localcc

Committer: GitHub

## Message

```
Optimize fs_watcher to use less RAM by doing less work (#39602)

mac_watcher already does this so it would make more sense to also do
this on Windows and it saves ~500-600mb of ram on the chromium project.

This does not improve memory usage on linux because inotify cannot do
recursive directory monitoring

Release Notes:

- N/A
```

## Parents

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

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