The default interval for gulp watch is 100 ms. With that setting node takes around 8% cpu on idle (MacBook Pro with a i7 cPU). This is a bit heigh.

After experimenting a bit with different interval values I have it now set to 600 ms. This brings the cpu usage down to around 1.5% on idle. A setting of 1200 ms brings it down even further to around 0,8%.

With interval set to 600 ms I do not notice it at all, I think this could be a sensible default, saving a lot of cpu cycles.

This patch however only adds some information about the interval setting and a comment out example.

CommentFileSizeAuthor
zen_gulp_interval.patch635 bytesfrjo

Comments

frjo created an issue. See original summary.

johnalbin’s picture

Status: Needs review » Reviewed & tested by the community

This looks good, but it's 11:30pm on a Friday so I'm going to wait to commit it when I'm more awake.

johnalbin’s picture

Finally doing a proper review.

  • JohnAlbin committed 447a701 on 7.x-6.x authored by frjo
    Issue #2745341 by frjo, JohnAlbin: gulpWatchOptions interval for lower...
johnalbin’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.