Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the watcher more responsive to child changes
Watching for changes on files with lots of `@import`s had a significant regression in responsiveness in sass#1745. The regression was caused by calling `gaze.add` unnecessarily. We only need to call `gaze.add` on files that aren't currently being watched. At the time I confirmed that calling `gaze.add` in files that were being watched wouldn't result in a leak or multiple events being fired. I however assumed calling `gaze.add` for already watched files would be very cheap. Fixes sass#1869
- Loading branch information