Skip to content

Commit

Permalink
feat(watcher): use polling on Mac
Browse files Browse the repository at this point in the history
Revert to polling on Mac. Use OS events on Linux and Windows.

Eventually I wanna get rid off polling even on Mac, however it's not ready yet.

See:
https://github.com/pipobscure/fsevents/issues/17
paulmillr/chokidar#87

Basically reverts e88fbc2.
  • Loading branch information
vojtajina committed Dec 24, 2013
1 parent e99f187 commit 66f50d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ var Config = function() {
this.colors = true;
this.autoWatch = true;
this.autoWatchBatchDelay = 250;
this.usePolling = false;
this.usePolling = process.platform === 'darwin';
this.reporters = ['progress'];
this.singleRun = false;
this.browsers = [];
Expand Down

1 comment on commit 66f50d7

@michaelsbradleyjr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On current macOS (I'm on Sierra 10.12.4), it works very well now to have usePolling set to false; in fact, it works much better than polling and uses dramatically less CPU. Should this runtime-setting be revisited?

Please sign in to comment.