sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
814 stars 40 forks source link

Slow Quick Switch Project With Lots of Projects #5595

Open ihdavids opened 2 years ago

ihdavids commented 2 years ago

Description of the bug

When I have navigated to more than 15-20 projects the quick switch project popup takes many seconds to appear when I hit the hotkey to pop it up. This makes this feature much less useful if I could navigate to the project faster manually. I can fix this by clearing the recent projects, but that is a real pain as I have to manually switch to the projects.

I did not really start to experience a problem with this until recently, but I am not sure exactly when this started to be a problem but it has been an annoyance for a number of months at least.

In addition larger code projects (millions of files) often take a few seconds to become responsive when I make the switch. I maintain 6 ish clones of my primary project as I am often working on many features at the same time and it is often handy to have the clones on different branches at the same time. I also tend to work on quite a few different repos, each their own project as part of my daily work flow. It would be amazing if we could improve the performance of managing a long projects list and switching projects. This is an incredibly important part of my regular workflow (jumping around between projects)

Steps to reproduce

Pull down a larger number of larger repos and setup projects for each one. Jump around a lot.

Notice that when you pop up the quick switch project window it can take up to 20 seconds to appear. Also notice that once you have switched it can take a few seconds for sublime to become responsive again.

Expected behavior

Instant switch... Sublime prides itself on performance, so much so that we can't get features like variable font support.

Actual behavior

Slow, and sluggish switch

Sublime Text build number

4137

Operating system & version

Windows 10

(Linux) Desktop environment and/or window manager

No response

Additional information

Using a Titan with 32 cores and 128 GB of RAM.

OpenGL context information

OpenGL Context Information:
  GL API Version: 4.6.0 NVIDIA 512.15
  GLSL Version: 4.60 NVIDIA
  Vendor: NVIDIA Corporation
  Renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2
startup time: 0.852747
first paint time: 0.864747
font face "Times" could not be used with direct write, using gdi instead

I have tried this with and without opengl hardware acceleration turned on, but to no avail.
BenjaminSchaaf commented 2 years ago

Does it happen in safe mode?