←back to thread

Making TRAMP faster

(coredumped.dev)
226 points celeritascelery | 1 comments | | HN request time: 0s | source
Show context
IceDane ◴[] No.44357681[source]
Tramp is tolerable, but it is absolutely not great. You went on to demonstrate that right after making that claim, where you manually (and insufficiently) hack around its issues to arrive at something that is only barely comparable to eg what vs code can do.
replies(1): >>44357713 #
kleiba ◴[] No.44357713[source]
Forgive my ignorance, but what does VSCode do?
replies(1): >>44358232 #
kristjansson ◴[] No.44358232[source]
Download a copy of itself onto the remote, run it there, and allow interaction with that copy
replies(3): >>44358522 #>>44358844 #>>44359062 #
ants_everywhere ◴[] No.44358522[source]
Editing a remote file is very common. Wanting to download and run a remote server every time you edit a remote file is far less common.

E.g. editing a config on an embedded device such as a router, editing a file inside a docker container, editing a file on a headless server, etc etc.

The only reasonable use case I can see for the vscode approach is if you're SSHing into your main development machine from another machine.

The remote server requirements include

> 1 GB RAM is required for remote hosts, but at least 2 GB RAM and a 2-core CPU is recommended.

That's pretty far from the SSH+vi use case that TRAMP replaces.

replies(2): >>44358584 #>>44364039 #
kristjansson ◴[] No.44358584[source]
Correct. I didn't say it was a good thing :)

FWIW it is a one-time download on the remote, but still feels yucky, esp. for resource constrained settings (Pi like you mentioned, but also quota-limited containers etc.)

replies(1): >>44358785 #
1. ants_everywhere ◴[] No.44358785[source]
> Correct. I didn't say it was a good thing :)

Fair enough :)