napcs/node-livereload — pull request #7 by Leftium (2013-07-06 05:57:34+00:00)
Title: Eliminate agonizing delay until browser reload.

**Warning!** This is the second of two conflicting pull requests. There are three options:

1. Merge only the other pull request. File system events are less laggy and use less CPU, but they did introduce socket errors (which I worked-around) and may introduce compatibility issues with other systems/older versions of Node.js.
2. Merge only this pull request. A safer, more conservative change that removes most of the delay at the cost of extra CPU.
3. Support both file system events and polling by adding an option and combining these two pull requests. Shouldn't be that hard.

*Commit message:*

Call fs.watchFile() with interval option.
1000ms selected to balance decreased lag with increased CPU usage.
(~10% CPU usage when serving site with 9477 files, 4049 folders).