From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#895: slow processing of process output Date: Wed, 06 Jul 2011 11:07:13 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309964924 10404 80.91.229.12 (6 Jul 2011 15:08:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 15:08:44 +0000 (UTC) Cc: larsi@gnus.org To: 895@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 17:08:40 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QeTiS-00008H-El for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2011 17:08:40 +0200 Original-Received: from localhost ([::1]:46188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeTiQ-00028V-Uq for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2011 11:08:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeTht-00024x-Gy for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 11:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeThr-0001k0-HV for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 11:08:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeThr-0001js-3X for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 11:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QeThq-0001CL-EZ; Wed, 06 Jul 2011 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2011 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 895 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 895-submit@debbugs.gnu.org id=B895.13099648574567 (code B ref 895); Wed, 06 Jul 2011 15:08:02 +0000 Original-Received: (at 895) by debbugs.gnu.org; 6 Jul 2011 15:07:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeThQ-0001Bc-RJ for submit@debbugs.gnu.org; Wed, 06 Jul 2011 11:07:37 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeThO-0001BL-W9 for 895@debbugs.gnu.org; Wed, 06 Jul 2011 11:07:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAIAAF5FE5FxIV4/2dsb2JhbABTmRmOa3iIesMqhjcEnmuELw X-IronPort-AV: E=Sophos;i="4.65,487,1304308800"; d="scan'208";a="120677377" Original-Received: from 69-196-133-120.dsl.teksavvy.com (HELO ceviche.home) ([69.196.133.120]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Jul 2011 11:07:28 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7B64C660D9; Wed, 6 Jul 2011 11:07:13 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 30 Jun 2011 03:10:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 06 Jul 2011 11:08:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48076 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)) > I've now bound `process-connection-type' to nil in `rgrep' for Emacs 24. What makes it faster? Could it be that with process-connection-type set to nil grep doesn't emit the color escape sequences? Stefan