-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not watch vendor/ for changes. #693
Conversation
I believe that this resolves the performance issue that @krisselden mentioned recently. |
does this also then not watch files explicitly added from vendor? e.g. if so, we must find a solution for this, or we will have many sad plugin authors. |
Not sure why that would sadden folks, also this was the behavior prior to #562. |
I view |
@rjackson bower link/npm link are part of normal development workflows. When one makes such changes it is very important that we provide nice fast feedback. It seems like files explicitly imported should be watched. |
@stefanpenner - When you run |
I will think about how to get the explicitly added files watched. |
I think the only solution is to watch files that are explicitly imported. I believe the issue, is when we end up watching much much much larger tree's. But I believe this is very important for our addon story, both for authors and consumers. |
I have updated this PR to do as you have asked. It will now watch the directory containing the file being imported (there is no way currently to watch a specific file only). This still results in a much lower CPU consumption than master, and is definitely a win. |
@rjackson any ideas to watch specific files? |
@stefanpenner - Yes, I am working on it, but it will have to be updated in Broccoli (working on refactoring the |
Do not watch vendor/ for changes.
thanks @rjackson :) |
Nice! My poor little macbook air's fan thanks you. 👍 |
This fixes the polling regression that was added in #562 (broccoli-bower was doing this internally).
On my rMBP this change takes a super simple app (https://github.com/rjackson/_____ember-cli-test) from ~9% CPU usage down to ~2% (during
ember server
).