From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Mysterious fontification/C++ context issue Date: Sun, 10 Dec 2006 13:46:40 +0100 Message-ID: <85irgjj4un.fsf@lola.goethe.zz> References: <87y7po2e9b.fsf@leeloo.anubex.internal> <45741FBE.3000107@swipnet.se> <45742464.1090504@gmx.at> <20061204203024.D17603@colin2.muc.de> <45768797.5010106@gmx.at> <87odqhj89q.fsf@stupidchicken.com> <20061210014526.GB3738@muc.de> <877ix0lfm8.fsf@furball.mit.edu> <20061210102249.GA1235@muc.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165754836 7308 80.91.229.10 (10 Dec 2006 12:47:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Dec 2006 12:47:16 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 10 13:47:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GtO5B-000407-Nm for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2006 13:47:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtO5B-00049R-9H for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2006 07:47:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtO4z-000490-3D for emacs-devel@gnu.org; Sun, 10 Dec 2006 07:46:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtO4x-00048c-4o for emacs-devel@gnu.org; Sun, 10 Dec 2006 07:46:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtO4x-00048Z-2A; Sun, 10 Dec 2006 07:46:51 -0500 Original-Received: from [212.7.152.119] (helo=mxout02.versatel.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GtO4w-000133-Sl; Sun, 10 Dec 2006 07:46:51 -0500 Original-Received: from mx05.versatel.de (mx01.versatel.de [212.7.146.1]) by mxout02.versatel.de (8.12.11/8.12.11) with ESMTP id kBACknUP032042; Sun, 10 Dec 2006 13:46:49 +0100 Original-Received: from lola.goethe.zz (i5387AF35.versanet.de [83.135.175.53]) by mx05.versatel.de (8.12.11.20060308/8.12.11) with ESMTP id kBACknrC010381; Sun, 10 Dec 2006 13:46:49 +0100 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id D81BF1CAD6E1; Sun, 10 Dec 2006 13:46:40 +0100 (CET) Original-To: Alan Mackenzie In-Reply-To: <20061210102249.GA1235@muc.de> (Alan Mackenzie's message of "10 Dec 2006 10\:12\:35 +0100\, Sun\, 10 Dec 2006 10\:22\:49 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:63543 gmane.emacs.pretest.bugs:15639 Archived-At: Alan Mackenzie writes: > With Martin Rudalics's optimisation to c-beginning-of-defun-raw, I > don't feel that the slowness is too bad any more (though he does > ;-). In the extreme case xdisp.c, scrolling to EOB and M-v is > mildly sluggish (about half a second), on my 5 year old Athlon 1.2 > GHz machine. A typical new PC now is, say, 3 GHZ. In the time > Emacs 22 is the current release, a typical new PC will come to be > around 20 GHz, and this slowness will not matter. Please, arguments like that are just not acceptable. If examples with barely tolerable behavior can be come across easily, you can bet that there will be normal use cases where the the behavior will be quite intolerable. And even on faster machines, editing should try avoiding draining unnecessary CPU power: editing is by far the most important application where you want to have a long battery life for laptops. I am working with a 600MHz laptop, and my occasionally used desktop system has a 233MHz processor. The preview-latex package has been streamlined to operate well on such machines. It would be really a bad hoax if syntax highlighting (which does a lot less) would make such machines unusable for editing with an up-to-date Emacs with default settings. When stuff becomes sluggish on a machine of _your_ power, that most likely implies an O(n^2) or worse behavior. And that means that it does not take much of a change in the highlighted file to get intolerable behavior on your machine or even better ones. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum