From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; insert-file-contents is slow under tramp Date: Mon, 27 Aug 2007 12:52:35 +0200 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 1188211987 29704 80.91.229.12 (27 Aug 2007 10:53:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 10:53:07 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 27 12:53:05 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 1IPcDN-0005EO-3k for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 12:53:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPcDM-0002PP-Ae for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 06:53:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPcDH-0002Oc-Q7 for emacs-devel@gnu.org; Mon, 27 Aug 2007 06:52:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPcDC-0002MS-R9 for emacs-devel@gnu.org; Mon, 27 Aug 2007 06:52:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPcDC-0002MM-Kt for emacs-devel@gnu.org; Mon, 27 Aug 2007 06:52:50 -0400 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IPcD8-0007KD-8j; Mon, 27 Aug 2007 06:52:46 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id l7RAq9hn003177; Mon, 27 Aug 2007 12:52:09 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 24 Aug 2007 10:32:19 -0400") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.72 X-Detected-Kernel: Linux 2.4-2.6 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:77277 gmane.emacs.pretest.bugs:19638 Archived-At: Stefan Monnier writes: > 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? The major bottleneck is `accept-process-output', which returns only small chunks when called again and again. With a `sleep-for' between two calls, I have improved the performance (but not dramatically). However, this approach would require to manage when it is desired to apply `sleep-for', and when not. Most of the commands, Tramp sends to the remote host, return just one or two lines of output. I guess it isn't worth the trouble. For local hosts, I have implemented the fast track (satisfying su and sudo); in all other cases accessing huge files, scp (or pscp) shall be sufficient. > Stefan Best regards, Michael.