From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; insert-file-contents is slow under tramp Date: Fri, 24 Aug 2007 10:32:19 -0400 Message-ID: References: <87veb6l9b0.fsf@escher.local.home> <46CD98DC.1050701@gmx.at> <87r6lul2fc.fsf@escher.local.home> <46CDC8B3.7000301@gmx.at> <46CDED2B.3080904@gmx.at> <87k5rmkmu0.fsf@escher.local.home> <46CDF5B7.2030201@gmx.at> <87fy2akjzt.fsf@escher.local.home> <87bqcxzeat.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187970709 1561 80.91.229.12 (24 Aug 2007 15:51:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2007 15:51:49 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 24 17:51:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IObRn-0007FP-HK for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 17:51:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IObRn-00048X-4G for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 11:51:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IObRj-000483-AN for emacs-devel@gnu.org; Fri, 24 Aug 2007 11:51:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IObRh-00047P-5F for emacs-devel@gnu.org; Fri, 24 Aug 2007 11:51:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IObRh-00047M-0H for emacs-devel@gnu.org; Fri, 24 Aug 2007 11:51:37 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IObRg-0004Jp-LB for emacs-devel@gnu.org; Fri, 24 Aug 2007 11:51:36 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IObRe-0002g0-VM for emacs-pretest-bug@gnu.org; Fri, 24 Aug 2007 11:51:35 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IObRc-0004JE-9X for emacs-pretest-bug@gnu.org; Fri, 24 Aug 2007 11:51:36 -0400 Original-Received: from tomts13.bellnexxia.net ([209.226.175.34] helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOaCz-0006c1-Cb; Fri, 24 Aug 2007 10:32:21 -0400 Original-Received: from ceviche.home ([70.55.80.33]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070824143219.EFSE13659.tomts13-srv.bellnexxia.net@ceviche.home>; Fri, 24 Aug 2007 10:32:19 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C96D1B4097; Fri, 24 Aug 2007 10:32:19 -0400 (EDT) In-Reply-To: <87bqcxzeat.fsf@gmx.de> (Michael Albinus's message of "Fri\, 24 Aug 2007 07\:34\:18 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77098 gmane.emacs.pretest.bugs:19622 Archived-At: >> So I hope there's a better way. > Yes. I've installed a patch in the trunk, which makes a fast track for > "remote" files being on localhost. How does that work? I mean when accessing files on the localhost with Tramp, the most likely situation I can think of is the `su' method so how what does your "fast track" do to transfer the file faster? Does it copy it to /tmp at the "remote" end, then make it world-readable, then copy it on the "local" end, then remove it at the remote end? > For real remote hosts, I recommend to use scp when accessing huge files. Reminds me: where is the bottleneck in the inline method? I mean fundamentally doing a base64 encoding/decoding shouldn't cost that much (negligible CPU-wise and a mere 33% in network transfer). Maybe we could attack this part to improve performance? Stefan