-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support for polling interval with --watch #801
Comments
Related: #636 |
Thanks for your feedback. The Currently, we are focusing on implementing the remaining features of libsass API and streamlining the build process. We will probably be able to visit it after v3.0.0. Nonetheless, the PRs are always welcome; we still have time to include breaking changes in v3. Feel free to chip in. :) |
I wonder what a good way to handle this via the CLI is. I don't want to duplicate all of Gaze's CLI options in our CLI. Handling the API side of this is easy because we can simple pass through a |
In some environments the fs watcher falls back to polling for changes. Both our current watcher and the proposed new watcher both had support for user-defined polling intervals. I see no reason not to add this for users who want extra control. Fixes sass#801.
@jareware I've had some experience troubleshooting performance of NFS and I'd like to know more about your case before we take a stab at fixing it. What kind of environment is this? What is the performance issue you are experiencing? Are you running something like |
|
NVM I miss that this was a CPU issue. I doubt debugging this over GH issues will productive. Our slack channel is better medium https://libsass-slack.herokuapp.com/. @jareware feel free to join us here if the issue persists. Closing this in the interim as it appears to be an isolated case. |
@saper, @xzyfer, sorry I was away from civilization for a few weeks. :) The issue was (as I recall it) that the polling interval was too high, essentially busy-looping when looking for changes, whereas I would have been completely happy with e.g. looking every 250ms. But there was no option for it in node-sass. Not an issue for me anymore (environment changed), so no need to reopen for me. |
If using
node-sass --watch
in an environment where Gaze falls back to polling (e.g. networked file system) the polling can cause unnecessary CPU-load.Would you consider some method for passing the
interval
option to Gaze?The text was updated successfully, but these errors were encountered: