headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.3k stars 163 forks source link

Performance issues in development #2548

Open skoeva opened 5 days ago

skoeva commented 5 days ago

Describe the bug

Opening this up to keep track of the issue: crazy slowdowns to vscode all around, everything takes longer to load. Running npm start may take seconds, and the app window may not even open.

To Reproduce

On any branch(es), continue starting and force closing the app, querying the codebase using the search tool in the vscode sidebar, etc. Eventually things start to slow down (for me at least), and I need to restart vscode or WSL to reset the state.

Here's a screenshot of the time to run npm start:

image

Environment (please provide info about your environment):

Additional Context

This is likely related to Vite downloading all of the modules separately, and in the future they plan to use a rust-based approach that should address this: https://rolldown.rs/about

illume commented 5 days ago

I wonder if you can check the task manager the next time it goes slow to check for anti malware processes?

skoeva commented 5 days ago

I wonder if you can check the task manager the next time it goes slow to check for anti malware processes?

@illume will do, though I want to point out that the rest of the (windows) machine seems to be working fine outside of vscode. sounds like this would be on the linux side if anything

sniok commented 4 days ago

continue starting and force closing the app,

I don't get this one, how often do you force restart the app?

Eventually things start to slow down

could you check htop and see what uses the CPU?

machine seems to be working fine outside of vscode

Maybe that's an issue with VSCode? What's your version? Maybe vscode reindexes some new files after compilation?