From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Tobias C. Rittweiler" Newsgroups: gmane.emacs.devel Subject: Re: Low redisplay performance (23 regression) Date: Wed, 29 Apr 2009 20:01:29 +0200 Message-ID: <87eivbz6di.fsf@freebits.de> References: <4870CC42-A08E-4BE9-B566-0F4DA7AB0B74@gmail.com> <878wlj228q.fsf@freebits.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241028195 10789 80.91.229.12 (29 Apr 2009 18:03:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 18:03:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 29 20:03:06 2009 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 1LzE7e-0007nd-1e for ged-emacs-devel@m.gmane.org; Wed, 29 Apr 2009 20:03:06 +0200 Original-Received: from localhost ([127.0.0.1]:58259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzE7d-0006nk-BB for ged-emacs-devel@m.gmane.org; Wed, 29 Apr 2009 14:03:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzE6K-0006Ir-E8 for emacs-devel@gnu.org; Wed, 29 Apr 2009 14:01:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzE6J-0006I5-PE for emacs-devel@gnu.org; Wed, 29 Apr 2009 14:01:44 -0400 Original-Received: from [199.232.76.173] (port=40186 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzE6J-0006Ht-Jx for emacs-devel@gnu.org; Wed, 29 Apr 2009 14:01:43 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:49030 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzE6I-0005XK-Ur for emacs-devel@gnu.org; Wed, 29 Apr 2009 14:01:43 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LzE6G-0006IE-8C for emacs-devel@gnu.org; Wed, 29 Apr 2009 18:01:40 +0000 Original-Received: from host145.natpool.mwn.de ([138.246.7.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Apr 2009 18:01:40 +0000 Original-Received: from tcr by host145.natpool.mwn.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Apr 2009 18:01:40 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: host145.natpool.mwn.de User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:7zYdkFR4h6UNsX0L9qU/aZkCjJg= X-detected-operating-system: by monty-python.gnu.org: GNU/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:110553 Archived-At: Stefan Monnier writes: >> GNU Emacs 22.1.1 --> (4.323907 2 0.07007399999999997) >> GNU Emacs 23.0.60.1 --> (7.5862680000000005 1 0.048462000000000005) >> GNU Emacs 23.0.92.1 --> (7.610763 2 0.06742599999999999) >> (built on 2009-04-29) > > So it's about twice as slow for this test, which is the expected in this > case: since your benchmark always calls it with point between 2 defuns, > it ends up doing: BOD-raw to find the previous defun, EOD-function to > find its end, which tells Emacs that the starting point was after the > previous defun, so it calls BOD-raw again to find the next defun and > finally EOD-function to get to its end. Why didn't 22.x do this? Probably to fix some bug, right? -T.