Skip to content
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

running demo causes CPU/fans to go wild #8

Open
ffd8 opened this issue May 11, 2021 · 0 comments
Open

running demo causes CPU/fans to go wild #8

ffd8 opened this issue May 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ffd8
Copy link

ffd8 commented May 11, 2021

Describe the bug
Running this demo (using npm run demo) - causes the fan on my laptop (2018 mbp, MacOS 10.13.6) to go wild – in activity monitor, node gets up to 250% CPU, 13 threads... I luckily don't have this problem after testing out a compiled distribution demo with just a python/LAMP webserver. I'm guessing the issue is due to either concurrently, rollup, or live-server? Great that it recompiles and refreshes, but I'm not sure it's worth it for the stress and fan noise. Is this normal behavior for a live-changes setup? How would I best reduce this and simply compile on demand, as I have no problem refreshing the browser window if that's potentially causing it. Not familiar enough with node and packing js to know where to look/disable.

Thanks for any tips to calm my fans.

To Reproduce
Steps to reproduce the behavior:

  1. npm run demo
  2. Wait 5 sec for fans to go into overdrive
  3. Check Activity Monitor
  4. See node with 150 – 250% CPU

Expected behavior
Fans to be calm, maybe whirl up for a second while recompiling?

Environment Information

  • Latest chrome / node v15.4.0 / npm v7.0.15
  • yjs v13.0.0

Additional context
PS – getting very close to building an ace-editor demo for yjs..! Will share once I solve cursors/selections syncing.

@ffd8 ffd8 added the bug Something isn't working label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants