gruntjs / grunt-contrib-watch

Run tasks whenever watched files change.
http://gruntjs.com/
MIT License
1.98k stars 356 forks source link

inotify should be used on Linux. #535

Open nextgenthemes opened 7 years ago

nextgenthemes commented 7 years ago

I saw a old issue https://github.com/gruntjs/grunt-contrib-watch/issues/255 about this, someone claimed that is used for "some files". But did not specify that further. I checked gaze that is supposed to use inotify on linux but could not find any reference to it.

Based on the fact that on my i7-4790K CPU @ 4.00GHz I get some cores go high as 40% and my CPU fan spins up because of that while I watch some */.php/css/js files I say inotify is not used and probably never was properly. Why would it make sense to use it for "some file" and not for others? That makes no sense.

When I manually watch a folder with a bash inotofywait script my CPU stays pretty much idle, inotify is extremely efficient and should be used in this project.