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

Performance issue

Open pavelloz opened this issue 5 years ago • 4 comments

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

pavelloz avatar Dec 09 '19 19:12 pavelloz

I just run a test with native livereload straight from npm, and it doesnt have this issue:

livereload . -e "erb,js,css"

pavelloz avatar Dec 09 '19 19:12 pavelloz

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 Capture d’écran 2020-01-16 à 10 45 09

with LiveReload disabled Capture d’écran 2020-01-16 à 10 46 14

brocorp-dev avatar Jan 16 '20 07:01 brocorp-dev

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

we5 avatar May 28 '20 15:05 we5

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

ofhouse avatar Nov 06 '20 19:11 ofhouse