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

rerun is slow #72

Open
orborde opened this issue Jun 3, 2015 · 1 comment
Open

rerun is slow #72

orborde opened this issue Jun 3, 2015 · 1 comment

Comments

@orborde
Copy link

orborde commented Jun 3, 2015

On Linux, rerun takes up to a second to notice and relaunch my command after a file change. This is an annoying delay during rapid iteration (which is the whole point of rerun).

Compare the following two commands (run them side by side in two terminals):

rerun --pattern=some_pattern 'date +"%T.%N"'

vs

while true; do date +"%T.%N"; inotifywait -q some_pattern; done

On my system, rerun prints a date roughly a second later than the comparable bash snippet after I save a change to a monitored file.

@alexch
Copy link
Owner

alexch commented Jan 24, 2018

This might be an adapter issue. The fallback polling adapter can take a lot longer. See https://github.com/guard/listen#listen-adapters for more info.

Can you try to gem update listen rerun and see if the new versions use a good Linux adapter? It should say what adapter it's using on the console, like this:

13:53:36 [rerun] Watching . for **/*.{rb,js,scss,sass,erb,html,md} with Windows adapter

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

2 participants