Sublime Forum

Subl.exe slow to open/create files

#1

I just put together a new PC with the following specs:

i7 3.3GHz Hexacore (5820k)
16GB DDR4
GTX 980 Ti
500GB SSD (OS) and 1T SSD (Games/Files)
Windows 7 Pro x64

So it’s more than powerful. I’m on Sublime 3083 and am also using Cygwin (Unix environment emulation on Windows). But either through Cygwin’s terminal or the Windows terminal, subl constantly takes 4 seconds to open any file. On my previous PC (i7 920 2.67GHz Quad, 12GB DDR3, GTX570, 1TB HDD) it was almost instantaneous.

With as often as I use subl through the command line, this has become an annoyance. It’s almost EXACTLY a 4 second wait, whether Sublime is open (and it is) or not. Anyone have ideas why it’s so slow to execute now?

0 Likes

#2

[size=150]UPDATE[/size]

One thing of note, since Sublime is my Git default editor, when I perform a ‘git commit’ and it opens a file in Sublime to create the commit message, it does so instantly. Not like the 4 second delay when using subl from the CLI to open/create a file.

[size=150]2ND UPDATE[/size]

It would seem that the subl.exe command, when issued from the CLI and Sublime is NOT open, will NOT open Sublime either. It simply sits there for a spot-on 4 seconds, and then returns control to the CLI, without ever opening the program.

0 Likes

#3

[size=150]FIXED[/size]

For whatever reason, if you modify the Windows PATH environment variable to have the path to subl.exe first, the performance is restored. As a secondary note; I had previously copied subl to C:\windows\system32 as well, so that it could be seen by the PATH to begin with; this may have also played into the reasons why it took so long to use Sublime through the CLI. Either way I have tested both creating a new file and opening an existing while Sublime was both closed and then opened, and in all instances, the changes occur within half a second. So all is well.

0 Likes