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.
Comments
Comment #2
johnalbinThis looks good, but it's 11:30pm on a Friday so I'm going to wait to commit it when I'm more awake.
Comment #3
johnalbinFinally doing a proper review.
Comment #5
johnalbin