From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Improving tramp download speed Date: Fri, 20 Feb 2004 09:01:52 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87y8qyfabz.fsf@emptyhost.emptydomain.de> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077265230 25186 80.91.224.253 (20 Feb 2004 08:20:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2004 08:20:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 09:20:26 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Au5tZ-0004kM-00 for ; Fri, 20 Feb 2004 09:20:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Au5qp-0007KC-VS for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2004 03:17:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!213-203-244-156.kunde.vdserver.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de (213.203.244.156) Original-X-Trace: news.uni-berlin.de 1077264094 47431393 I 213.203.244.156 ([73968] 10430) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:dlbbogWbIwPdk4BpsURTAR9354Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:121064 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17015 fsu@sonnemans.net writes: > I am currently using tramp to work with remote files. Using ftp > transport tramp was fine, but I changed to scp transport for improved > security and find that it is just to slow. > > What is the fastest way to work with remote files while still being > relatively secure (no passwords in clear text acros the net). One reason for scp to be slow is that it requires to set up a connection every time when you transfer a file. The file transfer itself is fast, but this only pays off for large files. I've started to use inline methods (ie, the method ssh instead of scp), and I'm happy with its speed. Even a fairly large text file got transferred quickly enough. With the ssh method, Tramp invokes mimencode (or a similar program) on the remote end, then extracts the base64 encoded stuff from the shell buffer (ie, the buffer *tramp/foo*), and base64-decodes the stuff locally. This means that there is some overhead, for the base64 encoded stuff is larger than the original file. But Tramp doesn't need to initiate another connection. You could try to invoke scp manually to transfer a tiny file to get a feeling for how long it takes to set up the connection. Another possibility is to install the fsh package. It's a program (not an Emacs Lisp package) which multiplexes single ssh connections. I gather that invoking fcp to copy files is also fast because fcp knows to re-use an existing ssh connection. I installed hooks for fsh/fcp in Tramp ages ago, but I don't know whether they still work. I don't know how the speed of fsh/fcp compares with just using an inline method in Tramp. Does anyone have experience regarding this? Kai