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

Why Watch is so slow compared to Regarde #69

Closed
kud opened this issue Apr 5, 2013 · 6 comments
Closed

Why Watch is so slow compared to Regarde #69

kud opened this issue Apr 5, 2013 · 6 comments

Comments

@kud
Copy link

kud commented Apr 5, 2013

Hello,

I don't know exactly what really happens but... I've got a freelance project, and people use "watch".

I'm on Windows and I use a virtual machine with ubuntu server to have a whole linux environment. I know, it's a quite tricky context.

However, watch is so slow to execute a task. It detects that I've changed a file but it does nothing during 20 or 30s, and then it starts the task.

I have changed Watch to Regarde and now it executes the task directly, no time to wait. Regarde is so efficient.

Any idea? NTFS troubles?

@shama
Copy link
Member

shama commented Apr 5, 2013

By default this watch task will spawn task runs as child processes. For some systems, especially on Windows it can be really slow. Set the option: nospawn: true.

https://github.com/gruntjs/grunt-contrib-watch#optionsnospawn
https://github.com/gruntjs/grunt-contrib-watch#why-spawn-as-child-processes-as-a-default

@kud
Copy link
Author

kud commented Apr 5, 2013

Okay, thank you for the tips!

@kud kud closed this as completed Apr 5, 2013
@amfern
Copy link

amfern commented Oct 2, 2013

very helpful, thx

@thasmo
Copy link

thasmo commented Nov 18, 2013

Uh, thanks - that's it! :)

@YemSalat
Copy link

Thanks for the tip, and a quick update, the option seems to have changed to: spawn: false

@ykadosh
Copy link

ykadosh commented Aug 19, 2016

WOW, it's so much faster now! Why not set spawn: false to be the default setting? I just wonder what are the benefits of having spawn: true

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

6 participants