From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#895: slow processing of process output Date: Sun, 01 Mar 2009 15:33:14 +0100 Message-ID: Reply-To: Markus Triska , 895@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235918672 25848 80.91.229.12 (1 Mar 2009 14:44:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2009 14:44:32 +0000 (UTC) Cc: Dan Nicolaescu To: 895@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 15:45:47 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ldmuq-0002C9-Sq for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 15:45:17 +0100 Original-Received: from localhost ([127.0.0.1]:54440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdmtV-00089W-Gr for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 09:43:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdmtP-000875-An for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 09:43:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdmtK-00083r-0l for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 09:43:45 -0500 Original-Received: from [199.232.76.173] (port=55630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdmtJ-00083f-NH for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 09:43:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36975) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdmtI-00072P-R3 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 09:43:41 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n21Ehc13006961; Sun, 1 Mar 2009 06:43:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n21Ee3K1005822; Sun, 1 Mar 2009 06:40:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Mar 2009 14:40:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 895 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 895-submit@emacsbugs.donarmstrong.com id=B895.12359180114540 (code B ref 895); Sun, 01 Mar 2009 14:40:03 +0000 Original-Received: (at 895) by emacsbugs.donarmstrong.com; 1 Mar 2009 14:33:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n21EXQLA004532 for <895@emacsbugs.donarmstrong.com>; Sun, 1 Mar 2009 06:33:28 -0800 Original-Received: (qmail invoked by alias); 01 Mar 2009 14:33:20 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp069) with SMTP; 01 Mar 2009 15:33:20 +0100 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+m4SEYTzCmidDawEt7CR4g81B0TPSYSGcLlI8908 k4VUNHG03I/AYV Original-Received: by mt-computer.local (Postfix, from userid 502) id 92400C63B3C; Sun, 1 Mar 2009 15:33:14 +0100 (CET) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Mar 2009 09:43:45 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25878 Archived-At: I can reproduce the problem on OSX, and could significantly improve the running time by setting process-connection-type to nil before doing the rgrep. Let rgrep.el consist of: (grep-compute-defaults) (setq process-connection-type nil) (rgrep "emacs" "*.el" "~/emacs/lisp/") (while (process-status "grep") (sit-for 0.1)) and do: $ time emacs -Q --script rgrep.el Then contrast this with retaining t for process-connection-type. I have seen that using a pty can be a major performance problem also when communicating with other external programs, and I recommend to let-bind it to nil before starting the process when a pipe suffices.