Langsamer TRAMP-Modus in Emacs

2790
jmdeldin

Wie kann ich den Emacs TRAMP-Modus schneller machen?

Ich habe ControlMaster autoin meiner SSH-Konfiguration, und es funktioniert:

$ time ssh -v debel echo foo OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/jmdeldin/.ssh/config debug1: Applying options for * debug1: Applying options for debel debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: auto-mux: Trying existing master debug1: mux_client_request_session: master session id: 9 foo debug1: mux_client_request_session: master session id: 9  real 0m0.014s user 0m0.008s sys 0m0.003s 

Aber TRAMP ist schmerzhaft langsam (~ 3 s Datei speichert), wie in diesem Screencast zu sehen ist . M-x shellfunktioniert gut, aber sparen ist die wirkliche Verlangsamung. Das ist nicht das Beste, was TRAMP tun kann, richtig?

Einzelheiten

  • GNU Emacs 24.1.1 (2012-06-01 Build)
  • Ich führe eine Vanilla-Emacs-Instanz aus (Ich habe ein Farbthema im Video bewertet, aber das ist es).
  • Die VM läuft auf meinem Rechner.
  • Ich bin die Verbindung mit TRAMP über /rsync:user@host:file, aber ich habe versucht ssh, scpund sogar rsh, und alle von ihnen sind laggy.
4
Bist du auf einem Mac? Bei IUC gibt es einige Probleme mit Unterprozessen auf Emacs für OS X. Dies macht Flyspell beispielsweise sehr schmerzhaft. Ivan Andrus vor 11 Jahren 0
@IvanAndrus Ja, und Flyspell ist in der Tat schmerzhaft. Wissen Sie, ob es Möglichkeiten gibt, dies zu beschleunigen? Emacs 22.1.1 (Standard OS X) ist bei TRAMP eigentlich ziemlich schnell, aber 23.4 und 24.1 sind wirklich langsam. jmdeldin vor 11 Jahren 0

1 Antwort auf die Frage

2
Ivan Andrus

The subprocess handling is rumored to be problematic especially on OS X. Unfortunately, it seems to not be known what exactly the problem is. There are several open bugs relating to it. One suggests changing a timeout helps, and another that setting process-connection-type to nil helps. Please read them for details about where and how these are supposed to be applied in order to help.

You can also try the "Mac Port" which IIRC is supposed to have better process handling, and in general be very nice.

Vielen Dank! Dieser Port ist für TRAMP und Flyspell viel, viel schneller. Ich habe es mit Homebrew zusammengestellt, und es funktioniert sofort. jmdeldin vor 11 Jahren 0