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

Very High CPU Usage macOS #2100

Open
ChrisMcPherson opened this issue Jul 7, 2020 · 2 comments
Open

Very High CPU Usage macOS #2100

ChrisMcPherson opened this issue Jul 7, 2020 · 2 comments

Comments

@ChrisMcPherson
Copy link

Environment data

  • Language Server version: 0.5.51.0
  • OS and version: macOS 10.15.5
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.7

Issue

I am consistently experiencing very high CPU usage by the Microsoft.Python.LanguageServer on my macOS 10.15.5. This happened a little over 1 year ago, was resolved through an update, and now seems to be back (unsure, however, if the cause is the same). This is dramatically impacting usable battery life while using VSCode.

Additional lnformation

Screen Shot 2020-07-07 at 10 09 07 AM
Screen Shot 2020-07-07 at 10 08 32 AM

@erictraut
Copy link

Please try switching to Pylance, an updated Python language server that we introduced recently. It replaces the older language server and is built to be much faster and use fewer resources (CPU and memory). Give it a try and let us know if that addresses the problem you're seeing.

@ChrisMcPherson
Copy link
Author

I missed the announcement of Pylance, it looks exciting! I have switched to Pylance and will watch performance over the next day or so. Thanks for the tip!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants