Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Atom over sshfs Unusably Slow #2456

Closed
Closed
@martindale

Description

@martindale

When editing files over an sshfs connection, it takes long periods of time to perform basic actions (directory expansion, file opening). This is likely because git is running locally, but querying a remote repository many times -- can these behaviors be migrated into a non-blocking request? e.g., allow the file to open before the git repo has been read for any changes.

Activity

jrsprice

jrsprice commented on Jun 12, 2014

@jrsprice

I can confirm this however I'm running sshfs connection over vpn and it's extremely slow and crashes the editor. Must be something with the indexing project. I also agree with martindale that the git diff checks can also slow down if it's being triggered on changes / keystroke vs on save. I remember using ST3 and there was a plugin "vcs gutter" and the code had checked svn on every keystroke making the plugin worthless and unable to type. Unnecessary round trips.

Another issue that I and another team member have experienced is the overwriting other people's changes. If I have a file open in my editor and run a git pull on my sshfs mount, the changes do not reflect in the editor however git will show there are changes. Does the editor auto save? If that's the case, this is not good since this has happened multiple times. ST3 use to have a working popup dialog that mentioned remote changes.

I'll try to get some logs on what is going on to help debug and find a solution.

OS: Mac OS X 10.9.3

mtahmed

mtahmed commented on Jul 4, 2014

@mtahmed

I can confirm this. Also, the editor "hangs" when I try to open a directory that is sshfs-mounted. Probably because of indexing as @jrsprice said.

OS: Archlinux

DennisBecker

DennisBecker commented on Aug 11, 2014

@DennisBecker

I have the same perfoamnce issues with Mac OS X 10.9.4 using sshfs for a project. Atom Editor starts really slowly compared to Textmate and plugins like "git blame" are extremely slow to show up.

JonathanPorta

JonathanPorta commented on Aug 20, 2014

@JonathanPorta

+1

I am using Atom to edit files over an sshfs mount and saving, opening, directory browsing all take 1 - 2 seconds for each action. Sometimes saving takes 5-10 seconds.

I have also noticed that Atom doesn't seem to be an atomic file write. This is a major issue for me because I am using a watching the src directory with a compiler. As soon as Atom begins to save the file, the watcher sees that something has been modified and starts to recompile before Atom has even finished writing to the file. The end result is usually some sort of compile error.

A colleague of mine has this same issue using Sublime 2. But, in Sublime 3, the issue is fixed and writing works as expected.

macbury

macbury commented on Oct 7, 2014

@macbury

+1 Same here. If project have a lot of files it becomes laggy as hell

donkeybanana

donkeybanana commented on Oct 17, 2014

@donkeybanana

+1 would like an option to disable git integrations for working over mounted filesystems. This does not have to be automatic, if the integrations were part of a discrete package which we can toggle on demand that would be perfect for me.

batjko

batjko commented on Oct 17, 2014

@batjko
Contributor

Sounds like a possible dupe of #2313.
Accessing anything over any kind of network has always been troublesome.

jrsprice

jrsprice commented on Nov 3, 2014

@jrsprice

I ended up using rsync via acrosync from the app store and have it automatically push local files to the server. Sublime Text has the same issue with sshfs as well.

martindale

martindale commented on Nov 3, 2014

@martindale
Author

I think the real answer here would be to decouple the UI rendering and the network operations (make them asynchronous).

zuphu

zuphu commented on Jan 9, 2015

@zuphu
ysle

ysle commented on Jan 20, 2015

@ysle
Nikita240

Nikita240 commented on Jan 23, 2015

@Nikita240
macbury

macbury commented on Jan 23, 2015

@macbury

this flags for sshfs make it less laggy:
sshfs macburybury@localhost:/home/macbury/my_app ~/mounts/my_app/ -oauto_cache,reconnect,Ciphers=arcfour

132 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Atom over sshfs Unusably Slow · Issue #2456 · atom/atom