headlamp-k8s / headlamp

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

Performance issues in development #2548

Open skoeva opened 2 weeks ago

skoeva commented 2 weeks 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 2 weeks ago

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

skoeva commented 2 weeks 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 2 weeks 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?

knrt10 commented 1 week ago

For me it's pretty fast and I have multiple containers running in my machine at the time

 VITE v5.4.9  ready in 663 ms

  ➜  Local:   http://localhost:3000/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help