GitHub Copilot VSCode extension high memory usage #148944
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Still relevant. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Hi,
I noticed GitHub Copilot extension consumes too much memory, 300-400 MB on startup of blank project.
Tried some profiling heap snapshot allocated in VSCode Extension Host process, and found that one of the dependencies of Copilot extension,
source-map-support, is storing source code and its source maps in memory, summed up to around 100 MB.The stored source code/maps includes those from Copilot extension itself, but not limited to that, also includes source code from other extensions like
github.copilot-chatandeamodio.gitlensas shown in the image below.This is because
source-map-supporthooks intoError.prepareStackTracecalls, which is shared across all extensions, and every time an error is thrown, it tries to resolve the source code and source maps and those are cached until the extension host is terminated.I'd like to suggest to remove
source-map-supportfrom Copilot extension, or at least limit the effect ofsource-map-supportto only the Copilot extension itself if it's possible.source map is taking 53 MB:


source code is taking 30 MB:
Environment
Beta Was this translation helpful? Give feedback.
All reactions