livereload-vscode
livereload-vscode copied to clipboard
Performance issue
It looks like server is taking far too much CPU than it should.
I use chokidar regularly on projects with more files than this one and it doesnt hug nearly as much cpu.
Setting exts to only one extension (ie. erb) didnt help.
OS: macOS 10.14.6
Live action: https://youtu.be/yvJMz-YpRjM
I just run a test with native livereload straight from npm, and it doesnt have this issue:
livereload . -e "erb,js,css"
Hi guys,
we experienced the same issue on our hardware, huge CPU usage when LiveReload extension is started in VScode
Hardware
MacBook Pro 13" (2019), Core i5 1.4Ghz, 8Go RAM
OS
macOS Catalina 10.15.1
Software
VScode 1.41.1 + LiveReload extension 0.2.5 Chrome 78.0.3904.108 + LiveReload extension 2.1.0
with LiveReload enabled
with LiveReload disabled
Having the same issue and makes it nearly impossible to use without putting on the headphones and not complaining about the fan noise (400% CPU). The high CPU usage also stops immediately after disabling the LiveReload server
Made an update to the chokidar
package (used internally for file watching) and after this the CPU-performance was normal again.
I made a Pull Request to update the dependency, if anyone needs a fix until a new version is released, you can download a Prerelease here: https://github.com/ofhouse/livereload-vscode/releases/tag/v0.3.0-rc.0