Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fswatch is horribly slow on setting up inotify #321

Open
cryptomilk opened this issue Apr 18, 2024 · 0 comments
Open

fswatch is horribly slow on setting up inotify #321

cryptomilk opened this issue Apr 18, 2024 · 0 comments

Comments

@cryptomilk
Copy link

neovim tired to improve the watchfunc for lsp servers and used fswatch. However fswatch is horribly slow on set up.

Doing the following in the Samba source code

fswatch --event=Created --event=Removed --event=Updated --event=Renamed --event-flags --recursive

takes ~90sec to just set up inotify before I get any notifications!

In comparison:

inotifywait --event modify --event create --event delete --monitor --rescursive

needs less than 1 second to set up and get notifications!

cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 17, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 17, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 17, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 18, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 18, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 18, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 20, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
cryptomilk added a commit to cryptomilk/neovim that referenced this issue Jun 20, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
mfussenegger pushed a commit to neovim/neovim that referenced this issue Jul 6, 2024
This patch replaces fswatch with inotifywait from inotify-toools:

https://github.com/inotify-tools/inotify-tools

fswatch takes ~1min to set up recursively for the Samba source code
directory. inotifywait needs less than a second to do the same thing.

emcrisostomo/fswatch#321

Also it fswatch seems to be unmaintained in the meantime.

Signed-off-by: Andreas Schneider <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant