Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

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

@universemaster

Description

@universemaster
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions