tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Improve performances on high latency connexion


From: Compostella, Jeremy
Subject: Improve performances on high latency connexion
Date: Mon, 13 Oct 2014 15:54:01 +0200

Hi,

Sometime I'm working from home with a good Internet connexion.  Still,
going throught the VPN generates huge latencies to access the different
machines I'm working on.

Running a grep over tramp command takes more than 30 seconds so I
investigated a little bit today.  I found out that file properties has a
cache that I could use by customizing the
`remote-file-name-inhibit-cache' variable.  Its makes me save a bit more
than 10 seconds (according to ELP).

I had still to pay more than 20 seconds to get a grep result while in
the meantime from the console it takes less than 2 seconds ... I can
afford to wait a little more than using a console because it's more
convenient using Emacs but not that much.

I investigated a little bit more and figured out that a lot of shell
commands are sent especially to set environment variables.  I've
gathered these set variable commands in two commands and according to
ELP I've saved another 12 seconds.  Now running grep from Emacs over
tramp gets me result in less than 10 seconds which become acceptable.

I've joined the patch I've made, could you please review it (merge it
?).

I have a question too: is there a way to use a "persistent" tramp
connexion to run commands ?

Thanks,

Jérémy

-- 
One Emacs to rule them all
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Attachment: 0001-tramp.sh.el-tramp-open-connection-setup-interactive-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]