使用emacs tramp vs. rsync进行远程开发 [英] Using emacs tramp vs. rsync for remote development

查看:272
本文介绍了使用emacs tramp vs. rsync进行远程开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用emacs流氓进行一些远程开发,发现它很慢。每次保存文件时,大约需要10秒才能完成保存。所以,现在我使用rsync远程传输文件,它的工作速度更快,它需要大约一秒钟,本地保存从emacs即时。流浪汉中是否有任何配置选项让其运行速度与rsync在命令行上一样快?即使我看到这样糟糕的表现,使用流浪而不是rsync有什么好处吗?

解决方案

虽然流浪汉可以配置为使用大量的传输方法,我想你使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆