yjs / y-quill

Quill Editor binding for Yjs
https://demos.yjs.dev/quill/quill.html
MIT License
80 stars 18 forks source link

running demo causes CPU/fans to go wild #8

Open ffd8 opened 3 years ago

ffd8 commented 3 years ago

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

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