From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Overlays as an AA-tree Date: Fri, 17 Feb 2017 09:12:15 +0200 Message-ID: <837f4pxpdc.fsf@gnu.org> References: <87d1jylv43.fsf@fastmail.com> <87fujv64mn.fsf@hochschule-trier.de> <87fujvpkzc.fsf@fastmail.com> <87vasr5tqd.fsf@hochschule-trier.de> <87d1ex4kon.fsf@hochschule-trier.de> <87d1evod6x.fsf@fastmail.com> <877f53ftab.fsf@hochschule-trier.de> <878tpiqiuc.fsf@hochschule-trier.de> <87shnppspb.fsf@hochschule-trier.de> <87o9yc9v30.fsf@hochschule-trier.de> <87a89vaes3.fsf@hochschule-trier.de> <87efz7n0g5.fsf@fastmail.com> <877f4uah6i.fsf@hochschule-trier.de> <83k28u1uyz.fsf@gnu.org> <871suxs9ad.fsf@hochschule-trier.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487315520 21498 195.159.176.226 (17 Feb 2017 07:12:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2017 07:12:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Politz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 17 08:11:56 2017 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 1cecht-0005A1-JZ for ged-emacs-devel@m.gmane.org; Fri, 17 Feb 2017 08:11:53 +0100 Original-Received: from localhost ([::1]:51904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cechz-0000VK-Bj for ged-emacs-devel@m.gmane.org; Fri, 17 Feb 2017 02:11:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cecht-0000VE-LQ for emacs-devel@gnu.org; Fri, 17 Feb 2017 02:11:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cechp-0000x1-A0 for emacs-devel@gnu.org; Fri, 17 Feb 2017 02:11:53 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cechp-0000wx-6V; Fri, 17 Feb 2017 02:11:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3162 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cecho-0007JI-AG; Fri, 17 Feb 2017 02:11:48 -0500 In-reply-to: <871suxs9ad.fsf@hochschule-trier.de> (message from Andreas Politz on Fri, 17 Feb 2017 05:58:34 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:212431 Archived-At: > From: Andreas Politz > Cc: emacs-devel@gnu.org > Date: Fri, 17 Feb 2017 05:58:34 +0100 > > So, I did as you ask and developed a couple of performance tests > based on 3 variables. Let N = #overlays. Thanks. > +----------------------------------+ > | 12.5K | 37.5K | > creation/property/action | list tree | list tree | > ================================================================ > |sequential/display/scroll | 6.32 5.24 | 37.59 16.47 | > | | | | > |sequential/display/random | 4.47 4.60 | 30.41 13.03 | > +---------------------------+----------------+-----------------+ > |sequential/face/scroll | 7.07 5.75 | 38.18 18.64 | > | | | | > |sequential/face/random | 4.25 4.13 | 30.50 13.23 | > +---------------------------+----------------+-----------------+ > |sequential/invisible/scroll| 6.63 5.02 | 36.62 16.02 | > | | | | > |sequential/invisible/random| 3.98 3.64 | 29.93 11.10 | > +---------------------------+----------------+-----------------+ > |random/display/scroll | 20.39 18.6 | 88.84 58.18 | > | | | | > |random/display/random | 7.57 7.22 | 77.65 21.14 | > +---------------------------+----------------+-----------------+ > |random/face/scroll | 11.16 8.75 | 88.31 27.72 | > | | | | > |random/face/random | 6.19 5.59 | 105.0 17.05 | > +---------------------------+----------------+-----------------+ > |random/invisible/scroll | 9.91 7.99 | 87.01 25.97 | > | | | | > |random/invisible/random | 6.58 5.75 | 86.73 17.01 | > +---------------------------+----------------+-----------------+ > | | list | tree | > +---------------------------+----------------------------------+ > |make-lines-invisible | 812.67 | 1.43 | > | | | | > |line-numbering | >15m * | 112.79 | > ================================================================ This looks very good indeed, thanks. > So, I think this looks pretty decent. I agree. > Finally, let me note, that the tree implementation is not > completely free of quadratic worst-case performance. There are > certain patterns of overlay layout, which trigger this kind of > thing. Though, it can be argued how likely these are to occur in > a real-world scenario. Maybe I'll write a bit more about that > later. Please do when you have time.