-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
constant CPU usage on watch #634
Comments
cc @shama |
Try increasing the interval. By default it is gulp.task('default', function (){
gulp.watch('_lara/app/**/*.php', { interval: 500 }, ['codecept']);
}) |
it helps quite well. |
I'm not sure. Two users with the apparent same environment, The next version only uses native OS events. More comparable to how applications installed with admin privileges watch files, such as antivirus programs. There are a couple issues outstanding preventing the update though. Please follow this issue for updates: shama/gaze#137 |
Merging into #651 |
I Tried the solution posted by @shama, but it did not do any change on CPU usage for my mac very similar to @Vasiliy-Bondarenko |
works for me on a i7 3.0GHz MBP. thanks for the tip. |
Ubuntu 14.04.1 LTS the same bug, 12% of cpu. |
Hey guys, so... CPU usage should be 0% because polling is wrong. Does anybody agree? I mean, I would use slightly less strong phrasing if this is actually a point of contention. But I mean... this is 2015. There are filesystem APIs. |
i see constant CPU usage around 12% on quite small number of files. ~230 *.php files.
no files changing at that time, no other watchers, no action at all.
CPU: i7 2.2
Mac OS X 10.9.4
node -v
v0.10.30
gulp -v
[02:08:51] CLI version 3.8.7
[02:08:51] Local version 3.8.7
watcher:
The text was updated successfully, but these errors were encountered: