From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [acm@muc.de: Re: Emacs 22.2 release plans - request for a slight delay.] Date: Mon, 17 Mar 2008 08:33:13 +0100 Message-ID: <47DE1EB9.6070707@gmx.at> References: <20080307072737.GA1334@muc.de> <47DD2A9C.70008@gmx.at> <20080316193633.GC1544@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205743004 2742 80.91.229.12 (17 Mar 2008 08:36:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2008 08:36:44 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 17 09:37:13 2008 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 1JbAqG-0001nb-CS for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 09:37:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbApg-0004jV-MI for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 04:36:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbAow-0004Bb-N1 for emacs-devel@gnu.org; Mon, 17 Mar 2008 04:35:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbAot-0004Aa-7W for emacs-devel@gnu.org; Mon, 17 Mar 2008 04:35:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbAot-0004AX-5b for emacs-devel@gnu.org; Mon, 17 Mar 2008 04:35:47 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JbAos-000707-NT for emacs-devel@gnu.org; Mon, 17 Mar 2008 04:35:47 -0400 Original-Received: (qmail invoked by alias); 17 Mar 2008 07:35:45 -0000 Original-Received: from N811P013.adsl.highway.telekom.at (EHLO [62.47.45.77]) [62.47.45.77] by mail.gmx.net (mp052) with SMTP; 17 Mar 2008 08:35:45 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+cPEAMJMicYNrW6M3qHUq3H4CrlZ6Ti2/56W+aVN iYbzg0F5X/KbGE User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <20080316193633.GC1544@muc.de> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:92808 Archived-At: > For me (1.2 Ghz Athlon) C-M-a from EOB in .../src/lisp.h take ~1.5 > seconds. Previously, it was about 30 seconds. That's an order of > magnitude speed up. I appreciate that. The problem is that `add-change-log-entry' here still spends some 7 secs not finding anything useful with `point' on the line reading extern Lisp_Object safe_alloca_unwind (Lisp_Object); admittedly also because `add-change-log-entry' is rather stupid. > The problem is that it is impossible to decide without an unbounded > search whether > > int foo [50] ; > (char *) bar ; > > occurring at the outermost nesting level of a file.c is declaring global > variables or is a k&r region declaring function parameters. > > I'd welcome suggestions as to how to speed it up, though. I can't see > much alternative to what I've done (put a limit on 20 paren/bracket > pairs in a k&r region) unless I put in a "column 0 heuristic", something > I'd realy rather not do. I'm puzzled that (parse-partial-sexp (point-min) (point-max)) completes instantaneously here (without any paren/brackets limits).