Sublime Forum

Lag on saving

#1

HI,

I’ve recently started to use SublimeText.
I use win-sftpfs(tried few others as well) to map my dev server to my PC, but i am having a big lag (2seconds) on every save using Sublime.

I have tested other editors, from notepad, apatana and zend studio, all save instantly.
However, when i save in sublime, it freezes for few seconds.

I see in explorer, that during save, a .TMP file is being created. I believe that’s the reason for the slowness, as that file is synced with the server.
Is it possible to change the location for temp files? Or write directly?

Do you have other ideas on how to fix this?

Many thanks

0 Likes

#2

You can turn off atomic_save in the User Settings.

    // Save via writing to an alternate file, and then renaming it over the
    // original file.
    "atomic_save": false, //defaults to true
0 Likes

#3

Works well, many thanks!

0 Likes

#4

[quote=“subhaze”]You can turn off atomic_save in the User Settings.

// Save via writing to an alternate file, and then renaming it over the // original file. "atomic_save": false, //defaults to true [/quote]

Interesting, I might try that… what is the implication?

0 Likes

#5

More info about atomic save can be found in the link below.

sublimetext.com/forum/viewt … =2&t=11531

0 Likes