Hey guys,
Recently I have been using sublime with a mounted filesystem over SSH (SSHFS) and have noticed that after a few minutes of use on a project folder that contains a git repository, and lots of files I get really bad lag, sublime keeps locking up and even switching tabs becomes very timely.
Basically, What I think is happening here is that the Sublime Indexing system is too heavy, the indexer runs very often when I feel it’s not really needed.
Examples:
-
Adding project folder
-
Saving a file
-
Opening a file
-
Switching Tabs
-
Leaving sublime and returning after few seconds
I usually work with my projects on the left bar, several tabs open, switching tabs very often, switching between sublime and Chrome / Other Applications, looking at the sshfs logs it seems like sublime will spawn several parallel indexing threads / processes in an asynchronous fashion.
Causing the SSH connection to become quickly bottle necked and unusable.
You can see the problem if you follow these reproduction steps
Setting up the mount
-
mkdir ~/remote_server
-
sshfs -o Ciphers=arcfour -o Compression=no -o sshfs_debug -f -o debug user@hostname:/ ~/remote_server -p22
Sublime
-
Open Sublime
-
Add a folder to your project from your mount that contains a decent amount of files, 300/500 or so
Now you will see the SSHFS scan happening in your debug output of the sshfs command, wait for this to finish it’s initial scan, then open a file, you will see another scan starts.
While that scan is running, viewing, opening, switching tabs all start new scans, after jumping around for a short period of time your connection is bottled.
Any thoughts on how to make this usable, this may be a bug, where do I report it if so.
Thanks