php-language-server icon indicating copy to clipboard operation
php-language-server copied to clipboard

Extension causes high cpu load

Open jadupl2 opened this issue 6 years ago • 11 comments
trafficstars

  • Issue Type: Performance
  • Extension Name: php-intellisense
  • Extension Version: 2.3.10
  • OS Version: Linux x64 3.10.0-957.12.2.el7.x86_64
  • VSCode version: 1.34.0

:warning: Make sure to attach this file from your home-directory: :warning:/home/jacques/felixfbecker.php-intellisense-unresponsive.cpuprofile.txt

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

jadupl2 avatar May 25 '19 14:05 jadupl2

It looks like its spawning php and not killing (or reusing) the previous process.

sirking1991 avatar Jun 11 '19 01:06 sirking1991

Same problem on vscode 1.36.0-insider, 99% cpu load

tiptronic85 avatar Jun 14 '19 08:06 tiptronic85

This is a huge issue for me. I do a lot of workspace switching on very large projects (Drupal), and the parser re-runs every single time I switch projects:

Parsing file:///c:/Users/.../dev/vendor/composer/include_paths.php (ad infinitum) [Info - 10:52:39 AM] All 16427 PHP files parsed in 797 seconds. 572 MiB allocated.

That's 13 minutes of extremely high CPU usage every time I open a workspace. Additionally, it takes over the "Output" tab and causes my terminal tab to lose focus.

There needs to be a way to pause or halt the parser, or possibly cache the parsed files.

adambernstein avatar Jun 18 '19 15:06 adambernstein

Huge issue for me too, using a MacBook Pro i9 processor.

daxter1987 avatar Jul 08 '19 14:07 daxter1987

Seems like this extension is not maintained anymore (looks like @felixfbecker have lack of time or will to continue maintaining it) looking at need help badges on issues as well as unanswered queries. So only options are (1) someone takes over the project (forking or being added as member) and keeps maintanance (2) Move to something more maintained

I have seen Serenata being actively maintained but am not sure if there is VSCode extension. In VSCode I have switched to Intelliphense and works fine!

mtangoo avatar Jul 10 '19 07:07 mtangoo

@mtangoo I'll happily review a PR

felixfbecker avatar Jul 10 '19 08:07 felixfbecker

Duplicate of #465 Please search first before firing off issues people. ;-) #DoYourPart

philoSurfer avatar Aug 01 '19 17:08 philoSurfer

switch to PHP Intelephense

joeyorlando avatar Jun 18 '20 21:06 joeyorlando

@joeyorlando I switched to Serenata and is working fine!

mtangoo avatar Jun 20 '20 14:06 mtangoo

Still using the PHP IntelliSense on VSCode and error persist as at this moment...

addykays avatar Jan 30 '23 19:01 addykays