Git: commands inside an sshfs mount are slow, so git plugins lag on remote files
Git inside an sshfs mount is slow because every git call walks the tree over FUSE. On a real host (ping avg 13 ms, sshfs 3.7.6, Neovim 0.12.6, default mount options), git status --porcelain on the mount took 1.6 s versus about 180 ms over SSH on the server, including connection setup. Single commands on the mount: rev-parse 272 ms, ls-files 187 ms, show 98 ms. gitsigns and fugitive pay this on every open, so git signs show up 0.8-2.0 s after opening a file.
| Setup | Open | Git signs ready |
|---|---|---|
| Local copy, my config | 10-125 ms | 25-150 ms |
| Mount, my config | 100-700 ms | 0.8-2.0 s |
One host, a noisy link and a small sample (headless Neovim, bash scripts in a ~20-file repo, a different file per open to avoid cache hits), so treat the numbers as indicative. I didn't attribute requests per plugin.
Git commands for paths under a mount should run on the server over the existing SSH connection, and git plugins should keep working unchanged. One option is a git wrapper on Neovim's PATH that translates paths both ways.