Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension causes high cpu load #2404

Open
junaid-droit opened this issue Feb 20, 2024 · 5 comments
Open

Extension causes high cpu load #2404

junaid-droit opened this issue Feb 20, 2024 · 5 comments
Labels
structural editor Token Cursor, Lexer, et al

Comments

@junaid-droit
Copy link

  • Issue Type: Performance
  • Extension Name: calva
  • Extension Version: 2.0.412
  • OS Version: Darwin arm64 23.3.0
  • VS Code version: 1.86.2

⚠️ Make sure to attach this file from your home-directory:
⚠️file:///var/folders/08/swytc_797z71tkvgk5jrktlw0000gp/T/betterthantomorrow.calva-unresponsive.cpuprofile.txt

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

betterthantomorrow.calva-unresponsive.cpuprofile.txt

@PEZ
Copy link
Collaborator

PEZ commented Feb 20, 2024

Hi! Thanks for reporting.

It would be great if you told us more. Like what you mean with high cpu load, when this happens, and what you make of the profile.

@junaid-droit
Copy link
Author

junaid-droit commented Feb 21, 2024

Hi Peter,

This issue was automatically authored by my VSCode IDE, and as a layperson I couldn't interpret the profiling it generated.

However, during this high load event, what I experience is that the Calva REPL becomes unresponsive to Option+Enter (MacOS). This happens periodically and I often wonder if it is because the Calva REPL history is running into the 1000s of lines. But deleting the previous lines in the file doesn't have an immediate effect. I have to restart the REPL most of the time.

@PEZ PEZ added the structural editor Token Cursor, Lexer, et al label Feb 21, 2024
@PEZ
Copy link
Collaborator

PEZ commented Feb 21, 2024

It sounds like the structural editor runs into problems. I'll see if the profile report can tell me anything more about it.

@junaid-droit
Copy link
Author

junaid-droit commented Feb 21, 2024

Thanks for looking. If you don't find anything then I don't mind you closing the issue, as the workaround of restarting the REPL is not too burdensome so far.

As I say, my IDE wanted the issue raised 🤖. Here is its documentation for doing so.

@PEZ
Copy link
Collaborator

PEZ commented Feb 22, 2024

It's interesting that it helps restarting the REPL. I recognize that from some other issue. Could mean that I am wrong about this being related to the structural editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
structural editor Token Cursor, Lexer, et al
Projects
None yet
Development

No branches or pull requests

2 participants