From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: The current state of the comment-cache branch Date: Sat, 24 Dec 2016 14:56:55 -0600 Message-ID: <864m1t11wo.fsf@stephe-leake.org> References: <20161223215056.GA2771@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1482613083 1918 195.159.176.226 (24 Dec 2016 20:58:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2016 20:58:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 24 21:57:59 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKtO8-0007sj-Ih for ged-emacs-devel@m.gmane.org; Sat, 24 Dec 2016 21:57:56 +0100 Original-Received: from localhost ([::1]:44728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKtOB-0007GD-BI for ged-emacs-devel@m.gmane.org; Sat, 24 Dec 2016 15:57:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKtNZ-0007G5-GX for emacs-devel@gnu.org; Sat, 24 Dec 2016 15:57:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKtNW-0001Sv-Fc for emacs-devel@gnu.org; Sat, 24 Dec 2016 15:57:21 -0500 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:54935) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1cKtNW-0001Rs-5N for emacs-devel@gnu.org; Sat, 24 Dec 2016 15:57:18 -0500 Original-Received: (qmail 26179 invoked by uid 0); 24 Dec 2016 20:57:03 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy5.mail.unifiedlayer.com with SMTP; 24 Dec 2016 20:57:03 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id Pwwx1u00U2UdiVW01wx0d6; Sat, 24 Dec 2016 13:57:01 -0700 X-Authority-Analysis: v=2.1 cv=KYpB72oD c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=n5n_aSjo0skA:10 a=IkfG8F-9erjf7zbwwGAA:9 Original-Received: from 76-218-37-33.lightspeed.kscymo.sbcglobal.net ([76.218.37.33]:59201 helo=TAKVER4) by host114.hostmonster.com with esmtpa (Exim 4.86_1) (envelope-from ) id 1cKtND-0005e5-6x; Sat, 24 Dec 2016 13:56:59 -0700 In-Reply-To: (Stefan Monnier's message of "Fri, 23 Dec 2016 20:33:56 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host114.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.218.37.33 X-Exim-ID: 1cKtND-0005e5-6x X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 76-218-37-33.lightspeed.kscymo.sbcglobal.net (TAKVER4) [76.218.37.33]:59201 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 3 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDExNC5ob3N0bW9uc3Rlci5jb20= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.222.38.55 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:210792 Archived-At: Stefan Monnier writes: >> First forward run Backwards Second forward run >> master: 34.100s 36.050s 34.575s >> comment-cache: 30.110s 32.275s 34.990s > > How come comment-cache is slower on the second run than on the first? Building the interval tree that stores text properties from scratch is faster than modifying it. The ada-mode parser, which creates lots of text properties, also shows this effect. -- -- Stephe