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

Extension causes high cpu load

Open EwertonJordao opened this issue 4 years ago • 6 comments

  • Issue Type: Performance
  • Extension Name: vscode-logicapps
  • Extension Version: 0.2.32
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.43.0

:warning: Make sure to attach this file from your home-directory: :warning:C:\Users\ejordao\ms-azuretools.vscode-logicapps-unresponsive.cpuprofile.txt

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

EwertonJordao avatar Mar 17 '20 20:03 EwertonJordao

Can you please attach the .cpuprofile.txt file to this issue? Or post a gist and link to it here? Thanks.

joechung-msft avatar Mar 25 '20 10:03 joechung-msft

Thank you for sharing this profiler data. I will take a look at this as soon as I can.

joechung-msft avatar Apr 15 '20 00:04 joechung-msft

I took a look at the CPU profiler data. The unresponsiveness is caused by having to load and compile a large number of scripts from the azure-arm-resource dependency. We can address this by switching from azure-arm-logic and azure-arm-resource to @azure/arm-logic and @azure/arm-resources, which solve the problem by bundling their scripts.

joechung-msft avatar May 29 '20 10:05 joechung-msft

Ok, I need to change my settings.json for this?

EwertonJordao avatar May 29 '20 13:05 EwertonJordao

This is a code change which will require updating the extension to use the newer modules instead of the older ones.

joechung-msft avatar May 29 '20 17:05 joechung-msft