From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup 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 13:33:23 +0200 Message-ID: <86bqcttdoc.fsf@lola.quinscape.zz> 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 1188214455 5213 80.91.229.12 (27 Aug 2007 11:34:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 11:34:15 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , Stefan Monnier , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 27 13:34:13 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 1IPcrF-00007j-Ci for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 13:34:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPcrD-0000wF-V8 for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 07:34:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPcqW-0000ml-H3 for emacs-devel@gnu.org; Mon, 27 Aug 2007 07:33:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPcqU-0000mF-Av for emacs-devel@gnu.org; Mon, 27 Aug 2007 07:33:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPcqU-0000m9-3T for emacs-devel@gnu.org; Mon, 27 Aug 2007 07:33:26 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IPcqT-0004xB-JN for emacs-devel@gnu.org; Mon, 27 Aug 2007 07:33:25 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id NAA10034 for ; Mon, 27 Aug 2007 13:33:20 +0200 X-Delivered-To: Original-Received: (qmail 17579 invoked from network); 27 Aug 2007 11:33:23 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 27 Aug 2007 11:33:23 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id C1A358FA33; Mon, 27 Aug 2007 13:33:23 +0200 (CEST) In-Reply-To: (Michael Albinus's message of "Mon\, 27 Aug 2007 12\:52\:35 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) 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:77279 gmane.emacs.pretest.bugs:19639 Archived-At: Michael Albinus writes: > 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). Same old scheduler problem that prompted both of w32-pipe-read-delay process-adaptive-read-buffering Maybe you should try setting process-adaptive-read-buffering to a non-nil non-t value? -- David Kastrup