unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Improving tramp download speed
Date: Fri, 20 Feb 2004 09:01:52 +0100	[thread overview]
Message-ID: <87y8qyfabz.fsf@emptyhost.emptydomain.de> (raw)
In-Reply-To: m2y8qysrul.fsf@zoe.sonnemans.net

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

      reply	other threads:[~2004-02-20  8:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 21:05 Improving tramp download speed fsu
2004-02-20  8:01 ` Kai Grossjohann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y8qyfabz.fsf@emptyhost.emptydomain.de \
    --to=kai@emptydomain.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).