From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: c mode still slow? Date: Mon, 21 Mar 2011 19:41:55 +0000 Message-ID: <20110321194155.GA2311@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300742330 7216 80.91.229.12 (21 Mar 2011 21:18:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 21:18:50 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Dave Milter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 22:18:45 2011 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.69) (envelope-from ) id 1Q1mUu-0003jX-D9 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 22:18:44 +0100 Original-Received: from localhost ([127.0.0.1]:39828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1mUt-0002Ye-LC for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 17:18:43 -0400 Original-Received: from [140.186.70.92] (port=38015 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1kuP-0000WU-To for emacs-devel@gnu.org; Mon, 21 Mar 2011 15:37:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1kuN-0003uG-ML for emacs-devel@gnu.org; Mon, 21 Mar 2011 15:36:56 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:3322 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1kuN-0003u8-BF for emacs-devel@gnu.org; Mon, 21 Mar 2011 15:36:55 -0400 Original-Received: (qmail 10951 invoked by uid 3782); 21 Mar 2011 19:25:35 -0000 Original-Received: from acm.muc.de (pD9E52104.dip.t-dialin.net [217.229.33.4]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 21 Mar 2011 20:25:32 +0100 Original-Received: (qmail 2678 invoked by uid 1000); 21 Mar 2011 19:41:55 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 4.6-4.9 X-Received-From: 193.149.48.1 X-Mailman-Approved-At: Mon, 21 Mar 2011 17:18:33 -0400 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:137500 Archived-At: Hi, Dave! On Mon, Mar 21, 2011 at 03:40:51PM +0300, Dave Milter wrote: > Hi, Alan and all. > Year or two ago I wrote email about emacs usage for C/C++ coding, how > it is painfully slow. Yes, I remember it well! I think your email was on 1st December 2008, and your test file was composed of thousands of #defines without any braces. To fix that, I optimised an internal "brace cache" to cope with this (reasonable) situation. Unfortunately, there were doubts about the absolute correctness of the change (which was large), so it sadly didn't get included in Emacs 23.3. It will be in Emacs 24. > Any progress since then? > At now I have GNU Emacs 23.3.1 on Linux. > I open two files: one with defines, and another with functions, and > get such results: Give me a little time, and I will send you the patch again, in a form which can be applied to Emacs 23.3. This will hopefully fix (again) the problem with the "#define" file. If the file with the functions is still sluggish, I'd like to hear from you again, with the file (if possible). Thanks for taking the trouble to report this bug again. ;-( > As you can see it take ages to show me content, and it still painfully > to work with such slow editor. > But of course without highlighting types and function names work is > also painful. > I wonder, may it is possible to process code into background, to allow > user work without any delay? Give me a day or two! -- Alan Mackenzie (Nuremberg, Germany).