-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Build: Make the watch rate slower to avoid using a lot of CPU while developing #23998
Conversation
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
In your testing, does #24001 lessen the need for this change? If so, how significantly? I'm wondering if the change to 500 ms could worsen the experience of Save -> Wait for recompile -> Reload page. I'm also wondering if certain text editors can contribute by e.g. using certain swap files or autosaving methods that trigger webpack more frequently. |
I didn't test properly tbh. My reasoning is that I'd rather wait 2 seconds when I save a file to refresh instead of having the CPU go crazy when I switch branches. I have no data to back this up. |
This is worth trying out. I also wouldn't mind having an environment variable to override this. |
Just going to merge this, let see if folks notice any inconvenience after that. |
By default it's 200ms, I'm using 500ms now but I believe we can also consider a higher number to take care of our CPUs.