使用emacs tramp vs. rsync进行远程开发 [英] Using emacs tramp vs. rsync for remote development
问题描述
虽然流浪汉可以配置为使用大量的传输方法,我想你使用ssh连接到远程服务器。
我相信完成操作所需的大部分时间都是从建立连接和验证。如果您正在使用新版本的OpenSSH,可以通过使用连接共享功能来帮助,参见ssh_config(5)中的ControlMaster。
我建议您尝试
ControlMaster auto
/ p>
,看看是否改善了情况。
I have been doing some remote development using emacs tramp and found that it was quite slow. Every time I save a file, it takes about 10 seconds to complete the save. So, now I am using rsync to transfer the files remotely and it works much faster, it takes about a second plus the local saves from emacs are instant. Are there any configuration options within tramp to get it to run as fast as rsync does on the command line? Are there any advantages to using tramp instead of rsync even though I am seeing such poor performance?
While tramp can be configured to use a large number of transport method, I suppose you're using ssh to connect to the remote server.
I believe most of the time it takes to complete the operation comes from setting up a connection and authenticating. If you're using a new enough version of OpenSSH, this can be helped by using the connection sharing feature, see ControlMaster in ssh_config(5).
I suggest you try
ControlMaster auto
and see if that improves the situation.
这篇关于使用emacs tramp vs. rsync进行远程开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!