vale-vscode icon indicating copy to clipboard operation
vale-vscode copied to clipboard

Add option to limit CPU use to avoid the noisy fan (on Macbook pro)

Open universemaster opened this issue 1 year ago • 3 comments

  • Is there a possibility of an option to limit CPU use?

    • On a 2014 Macbook pro when I use vale with the vscode extension, vale briefly spikes to above 200% fan use while I type, which turns on the noisy fan and makes visual updates (markdown preview etc) lag a bit.

    • I wonder if there could be an option to limit the CPU usage of vale?

    • I have very very many rules, which I'm reluctant to trim, because apart from the fan noise, I find these many rules a net benefit.

  • Another idea (on the vscode extension side) would be to "debounce" so that rather than running immediately on each key-press, vale is fired only after a pause of say 5-10 seconds? Again this could be configurable?

  • Finally, again on the vscode extension side, I suspect vscode is sending the entire file to vale on each key press? Would it be realistic to send only the part (paragraph?) that has changed. I've notice the CPU/noise problem becomes much worse, the longer the document?

universemaster avatar Feb 12 '23 17:02 universemaster