Slow directory watcher detection and ask/auto add to file_scan_exclusions #53626
glaudiston
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
What are you proposing?
I was having a bad time while using zed in a project repo that contains subrepo dependencies, between then the linux kernel cloned in a subdirectory. seems that the file watcher almost freezes my host that have 32 cores and 128G and a RTX-4090 GPU...
I found out that after excluding some big substructure folder tree the performance went back to normal.
Describe the feature, improvement, or change at a high level.
Why does this matter?
What problem does this solve?
High CPU usage slowing zed performance; and logs like
2026-04-10T08:54:28-03:00 ERROR [crates/fs/src/fs_watcher.rs:303] Error { kind: Io(Os { code: 22, kind: InvalidInput, message: "Invalid argument" }), paths: ["...some path .../linux/scripts/dtc/include-prefixes/riscv/andes"] }
What becomes easier or possible?
performe benchmark on the directory watch costs and if bypass a threshold considered acceptable, ask the user and create or add the
${project dir}/.zed/settings.jsonadding entries to thefile_scan_exclusionsAre there any examples or context?
here my project
.zed/settings.jsonScreenshots, mockups, workflows, or examples from other tools.
Possible approach
If you have ideas about how this could work, share them here.
Beta Was this translation helpful? Give feedback.
All reactions