-
Notifications
You must be signed in to change notification settings - Fork 298
FileSystemWatcher should ignore folders specified under 'oni.exclude' #2149
Comments
Thanks @josemarluedke for your investigation here! IMO, this is a release blocker - I don't want users to hit unexpected performance regressions when upgrading. I like the idea of respecting I'm also wondering if it makes sense for the The one concern I have with it being 'off-by-default' is that it may impact some of the new functionality - like rename, add file, delete folder - @Akin909 might have some ideas here - perhaps we could explicitly refresh with those once the gestures are completed. |
@bryphe yeah I think the behaviour of the Unfortunately my mac died quite recently so I probably won't be able to make a PR to turn if off soon, but was thinking it could be as simple as wrapping the watcher init function in a configuration option to prevent it listening to the FS. |
I like the idea of having a command to refresh it manually. NERD tree has |
Ah ya, that makes sense. Well, hopefully once we explore this a bit, we can enable it to be on-by-default again. It wasn't clear to me if the bottleneck was somewhere in the File I/O operations
Oh man sorry to hear that @Akin909 😦 I'll be happy to put together a PR for this - I'll add an
I like this idea too! It looks like we have |
Keeping this open to track the remaining work of incorporating |
Re. |
Cool, thanks @Akin909 ! That doesn't sound too bad 👍 |
@bryphe I've had a look at adding the I've had a look at how I'm still looking into ways round the slowdown including setting maximum limits on the depth of the files watched and also discovered paulmillr/chokidar#447 where the cpu usage is discussed although I'm seeing oni become v. slow to respond as opposed to necessarily really high cpu usage |
In the last version of Oni (v0.3.3-1) it was introduced a file system watcher (#2116 with further fixes in #2121). The file system watcher should exclude folders that is specified under
oni.exclude
configuration, or even added new configuration.For projects that generate
tmp
folders with many, many files under it, Oni becomes very unresponsive when opening such projects. After a certain amount of time with Oni open (~2-4 min), it will start to respond as expected.The text was updated successfully, but these errors were encountered: