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: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'. Date: Sun, 13 Mar 2016 21:09:33 +0100 Message-ID: <56E5C8FD.8020701@gmx.at> References: <20160309174816.GE3948@acm.fritz.box> <56E0805F.3050804@gmx.at> <20160312170839.GE2572@acm.fritz.box> <56E45B90.3090905@gmx.at> <56E45E72.2010801@cs.ucla.edu> <56E4640F.1000808@gmx.at> <20160312193626.GA10781@acm.fritz.box> <56E53232.80209@gmx.at> <20160313115239.GB1871@acm.fritz.box> <56E55838.2090000@gmx.at> <20160313124958.GC1871@acm.fritz.box> <56E56BF5.907@gmx.at> <83vb4qdzt2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457899815 30227 80.91.229.3 (13 Mar 2016 20:10:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2016 20:10:15 +0000 (UTC) Cc: acm@muc.de, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 13 21:10:04 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1afCKy-0001bM-21 for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2016 21:10:04 +0100 Original-Received: from localhost ([::1]:37474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afCKx-00084U-4p for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2016 16:10:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afCKj-000848-2N for emacs-devel@gnu.org; Sun, 13 Mar 2016 16:09:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afCKe-00029D-2l for emacs-devel@gnu.org; Sun, 13 Mar 2016 16:09:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:50233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afCKd-000299-Oy; Sun, 13 Mar 2016 16:09:44 -0400 Original-Received: from [192.168.1.100] ([212.95.7.49]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MMpYB-1akzEM0cAR-008XTh; Sun, 13 Mar 2016 21:09:37 +0100 In-Reply-To: <83vb4qdzt2.fsf@gnu.org> X-Provags-ID: V03:K0:whDM9inwrd8T1DGVuCxk3O8AgrUpDTGcn/Adv9b83kDDeOS9kFN 4MX/uagtktJcmoIVtj8DMrKG4jlFxnII0y0INE618uBHbN69oyw9wYJUs1q1B5DkP/tVzUL YuGsJcxNlvVSqAKV2SYAaN5uoddZ3niwhLHbttG5JP9s2zrb1rO3Ye/YunaddYyYU+VLgnS 41Yf+Uc/4Lh7clLMRa2nQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:1Y5xsGO2VK8=:ZFpu4ejAVfMXhRhFuEHdI7 7/CKN6yl/K0eFSsoWbeWztOMeodvXv0XnOuPG09/8WdaGX9HZLsMnar6NnHFBcDIYZPnzdy4U P0JfdDrnE4FwmXnhvYYJztwwmwvKZQ99RBH64LuM0NglnE9j3YSEcbi7C0NXunIqQrvwkljTb WCD3ssEdb5GigRPR17tqI7FgVNppXeNTEZ9NG11gnabR6Tsm8ScED/suDYh8jdTqhFwJqhoW3 xpw2KASocovJTAfWukALq/MlUiqaGjvAztxTvchheZ+SB+iUJu75kIZ2zb09fdRUIDRLk4c7V cZTRL3vpP5hbE7nzLdquvjHb4WEtVJrqi3lyooZExcQzLgOrDf1oIw9WZJ2Rwvy6PEPs6c+Zx R50jVOfFbY2CO4BeOm+JyAmw7+RoIeKo5D/RQfvleEbyj/x4QG8WiGkm34ZYgyeqZ2tAqj94R 2qT4m8Zds+n2r2HBpZBuzPXEZnjxaRJ9ACHgDw7xe6T4WTJGRMsldvTxm7XtYN/5Z4LBifr3L 1+r6s+CKJDHSItasqt5vmevxDbi2eNoTv8NtagSDgnjrm5TNDGiH9hbV7xnl4HTURzrPaKrIY vHlKlqRywwJr1pc11Sa2qQVxzx1uu9/B/s0hyDB5DMB7QrIq2tbkLdgQyhyMcCD1gwtMZiskJ I70KzE0q0sx1+zTrY6LMzL+A9KNPhV/1amUCmR9eO4Wz9ceilaThmwwMHK9zpV4OeKKvSNPwA t/dDPVl8OdfuS+oEQvH6QObmbug/OYJPdQjRUsBs6EG9rAJrZVYwADvFmU8h6BJ19lrUofOH X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:201641 Archived-At: > Here are my results, with today's emacs-25 and master: > > emacs-25 master emacs-25.0.92 emacs-23.3 > foo 33.375 33.89 2.859 1.375 > bar 213.250 213.578 15.547 8.625 > > The two former versions are compiled the same as Martin's, but without > "--enable-check-lisp-object-type=yes". The two latter versions are > optimized builds, and emacs-23.3 is (of course) without --wide-int. > > Also note that I killed the buffer visiting xdisp.c between testing > 'foo' and 'bar'. > > Martin, could it be that --enable-check-lisp-object-type=yes makes > such a big difference on your system? I don't think so. I currently switched all my debug builds to -O2 so that I can at least do some practical work with the release version and got the following results: Emacs-25 CFLAGS='-O2 -g3 -gdwarf-2' --with-wide-int --enable-checking=yes --enable-check-lisp-object-type=yes c-end-of-defun 365 5.3909999999 0.0147698630 c-beginning-of-defun 365 28.921999999 0.0792383561 Emacs-25 CFLAGS='-O2 -g3 -gdwarf-2' --with-wide-int --enable-checking=yes c-end-of-defun 365 5.3599999999 0.0146849315 c-beginning-of-defun 365 28.906999999 0.0791972602 comment-cache CFLAGS='-O2 -g3 -gdwarf-2' --with-wide-int --enable-checking=yes --enable-check-lisp-object-type=yes c-end-of-defun 365 3.8270000000 0.0104849315 c-beginning-of-defun 365 28.499999999 0.0780821917 master CFLAGS='-O2 -g3 -gdwarf-2' --with-wide-int --enable-checking=yes --enable-check-lisp-object-type=yes c-end-of-defun 365 5.7809999999 0.0158383561 c-beginning-of-defun 365 29.608999999 0.0811205479 master CFLAGS='-O3' c-end-of-defun 365 3.9530000000 0.0108301369 c-beginning-of-defun 365 20.124999999 0.0551369863 The only remarkable difference I see is that c-end-of-defun with the comment-cache version is significantly faster. The values for the relatively slow c-beginning-of-defun practically don't change unless I build without debugging information. martin