mehyaa / vscode-workspace-storage-cleanup

A cleaner for VSCode workspace storage cache.
MIT License
17 stars 1 forks source link

performance improvements #10

Closed j4k0xb closed 1 month ago

j4k0xb commented 1 month ago

It takes over 2 minutes to list my ~200 workspaces (without the folder size). Also careful with benchmarking: files are seemingly cached in memory by Linux (and other OS?) and can be read much faster for the second time.

With the folder size it would probably be hours since vscode somehow created a workspace in the root and home directory.

Ideas on how to improve it:

mehyaa commented 1 month ago

I was planning to change the webview html parts with another approach but I like your ideas are more.

Showing the workspace size seems unnecessary and expensive, maybe I'll change it to on demand per workspace.

mehyaa commented 1 month ago

With v1.3.0 most of your ideas are implemented and with separating the HTML and scripts of webview new feature can now be implemented more easily.