From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: M-x grep is too slow Date: Mon, 12 Jul 2004 19:58:09 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1089676731 15880 80.91.224.253 (12 Jul 2004 23:58:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2004 23:58:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 13 01:58:46 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkAh3-00008R-00 for ; Tue, 13 Jul 2004 01:58:45 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkAh3-00067p-00 for ; Tue, 13 Jul 2004 01:58:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkAjO-0002fG-HE for emacs-devel@quimby.gnus.org; Mon, 12 Jul 2004 20:01:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BkAjK-0002eX-Bo for emacs-devel@gnu.org; Mon, 12 Jul 2004 20:01:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BkAjJ-0002du-AJ for emacs-devel@gnu.org; Mon, 12 Jul 2004 20:01:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkAjJ-0002dk-7i for emacs-devel@gnu.org; Mon, 12 Jul 2004 20:01:05 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BkAgT-0004Tb-O6 for emacs-devel@gnu.org; Mon, 12 Jul 2004 19:58:09 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BkAgT-0000zL-9a; Mon, 12 Jul 2004 19:58:09 -0400 Original-To: Jesper Harder In-reply-to: (message from Jesper Harder on Sun, 11 Jul 2004 19:56:12 +0200) 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: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25632 The time is used in `compilation-filter', i.e. by simply inserting the strings in the buffer. That is quite strange. I suspect this is due to some sort of hook, because just inserting strings at the end of the buffer will not get slower. Is it due to the font-lock mechanism perhaps? If you run under GDB, you can stop it with C-z from time to time and make C and Lisp backtraces. That should give more info about what is taking the time. Can you determine precisely which change made this problem appear? Can someone else join in looking at the problem? Here's the way to make it fail M-x grep -nH -e while emacs/lisp/gnus/*.el had not finished in over 20 minutes.