File watcher resulting in high CPU use on Mac/Linux for large folders
Problem
We are using chokidar for file watching. Chokidar is known for performing bad over large folders (see https://github.com/paulmillr/chokidar/issues/410). To investigate: - can we consume a newer version of chokidar with the scalability issue fixed - can we change our watching strategy to only watch what we need instead of always watching root - can we switch to another watching library that is more efficient Workaround: Find the large folders in your workspace and add them under the `files.watcherExclude` setting
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: File watcher resulting in high CPU use on Mac/Linux for large folders
Although when `useFsEvents` is `false` (non-default option on OSX), the CPU usage becomes terrible. I'll investigate the new PR in chokidar too.
Trust Score
2 verifications
- 1
Although when `useFsEvents` is `false` (non-default option on OSX), the CPU usag
Although when `useFsEvents` is `false` (non-default option on OSX), the CPU usage becomes terrible.
- 2
I'll investigate the new PR in chokidar too.
I'll investigate the new PR in chokidar too.
Validation
Resolved in microsoft/vscode GitHub issue #3998. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep