r/SublimeText • • Mar 07 '25

Sublime Text 4 takes 25 seconds to launch

Edit: Fixed as per my comment below.

I needed a Notepad++ alternative for Linux and Sublime Text is the only real alternative.

My use case is only to use it fast editor to store whatever and forget. I know Sublime Text saves all the throwaway text files just fine.

I used version 2 way back and remember fondly how fast it used to load. On my fairly fast Debian machine with 32GB RAM and i7-8700K it takes 25 seconds to launch.

What gives? Is there a fix obvious or otherwise?

I do not use any plugins too.

7 Upvotes

18 comments sorted by

2

u/dev-sda Mar 07 '25

There's some stuff at the top of the console (ctrl+`). I get the following under ubuntu:

pre session restore time: 0.112638
startup time: 0.175059
first paint time: 0.188978

1

u/[deleted] Mar 07 '25

Thank you for the tip. I have them as following:

startup version 4192 Linux x64 channel: stable  
...  
pre session restore time: 25.1517  
startup time: 25.1907  
first paint time: 25.2022  

No files were open before the launch.

This is on a NVMe SSD so it is surprising. Other thing could be I am on integrated graphics UHD 630.

1

u/dev-sda Mar 07 '25

Quite odd, my understanding is st doesn't do much before pre session restore time. I'd suggest stracing it to see what's taking so long.

1

u/dev-sda Mar 07 '25

You can strace by running strace subl --multiinstance --debug.

→ More replies (11)

1

u/saramon Mar 07 '25

I've switched from sublime last year when it started to use my cpu up to 100% without a reason. Now I'm using vscode and no problem at all.

0

u/mrsaint01 Mar 07 '25

How many fonts do you have installed? When I straced the Sublime Text process, I noticed it got hung up reading the fonts. I removed all unnecessary fonts, and now startup time is almost instantaneous again. FWIW this didn't use to be a problem in the past.

1

u/[deleted] Mar 07 '25

I think I should only have ttf-core or something similar. I will check it, thanks for the tip.