helix icon indicating copy to clipboard operation
helix copied to clipboard

Slow autocomplete when opening files over SSHFS

Open v1bri opened this issue 6 months ago • 0 comments

Summary

The editor becomes extremely slow when trying to open files (via :o) that are accessed via SSHFS mounts. Every new character takes 1-2 seconds to show up, as if Helix is re-scanning the directory with every keystroke. ssh-ping reports latency to the remote server as ~50 ms and my SSH terminals are very responsive, so I don't suspect a bad connection.

I usually open Helix inside an SSH terminal to edit files "locally" on the server. I ran the above experiment to see if the "local Helix + remote filesystem" setup was better than the "remote Helix + local filesystem".

Reproduction Steps

I tried this:

  1. Mount $DIRECTORY over SSHFS
  2. Open Helix
  3. Try to open a file under $DIRECTORY with :o
  4. Type path to the file.

I expected this to happen:

Editor responds quickly to keystrokes.

Instead, this happened:

Editor becomes very slow to respond.

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Linux

Terminal Emulator

GNOME Terminal

Installation Method

Download binary from releases page.

Helix Version

helix 24.7 (079f5442)

v1bri avatar Aug 30 '24 15:08 v1bri