From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) Date: Sat, 04 Apr 2020 20:47:34 +0300 Message-ID: <83lfnbta6h.fsf@gnu.org> References: <83v9mkz5oo.fsf@gnu.org> <83pncsym6l.fsf@gnu.org> <4a9d6bb2-458d-89b0-5389-d1f883ef24a1@yandex.ru> <20200401135237.GA6240@ACM> <20200404110643.GB5329@ACM> <8a5e50ce-1ca6-078b-7e4b-b7849207092d@yandex.ru> <20200404123613.GE5329@ACM> <837dyvv1yq.fsf@gnu.org> <05ef31a9-a75e-4bbc-2c80-70d581baa0e9@yandex.ru> <83y2rbtddx.fsf@gnu.org> <83tv1ztd24.fsf@gnu.org> <0b4cc3ba-3091-7bda-debb-948e8eca075f@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="107197"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, casouri@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, akrl@sdf.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 04 19:48:46 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKmuT-000Rm4-Dt for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Apr 2020 19:48:45 +0200 Original-Received: from localhost ([::1]:40968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKmuS-0003BB-Fs for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Apr 2020 13:48:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35925) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKmtx-0002bg-4h for emacs-devel@gnu.org; Sat, 04 Apr 2020 13:48:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jKmtu-0004Wc-V2; Sat, 04 Apr 2020 13:48:11 -0400 Original-Received: from [176.228.60.248] (port=3768 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jKmtk-0005Ri-Fe; Sat, 04 Apr 2020 13:48:10 -0400 In-Reply-To: <0b4cc3ba-3091-7bda-debb-948e8eca075f@yandex.ru> (message from Dmitry Gutov on Sat, 4 Apr 2020 20:36:03 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246416 Archived-At: > From: Dmitry Gutov > Date: Sat, 4 Apr 2020 20:36:03 +0300 > Cc: casouri@gmail.com, akrl@sdf.org, monnier@iro.umontreal.ca, > emacs-devel@gnu.org > > Now, with an -Og build, here are outputs of several consecutive runs: > > Elapsed time: 0.912808s (0.125516s in 7 GCs) > Elapsed time: 0.772653s (0.077285s in 4 GCs) > Elapsed time: 0.769371s (0.076361s in 4 GCs) > Elapsed time: 0.776261s (0.077395s in 4 GCs) > [...] > In an optimized build, it's always < 0.2s here. So we are looking at -O2 being about 3 to 5 times faster than -Og, right? That's a speedup that is more than I'd expect, but still nowhere near an order of magnitude that Alan's timings seemed to show.