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: Wed, 01 Apr 2020 05:28:02 +0300 Message-ID: <83pncsym6l.fsf@gnu.org> References: <83o8sf3r7i.fsf@gnu.org> <2E218879-0F24-4A20-B210-263C8D0BEEA4@gmail.com> <838sjh2red.fsf@gnu.org> <83369o3bvb.fsf@gnu.org> <83imik1qbq.fsf@gnu.org> <835zek1kpv.fsf@gnu.org> <83v9mkz5oo.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="62983"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Wed Apr 01 04:28:20 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 1jJT75-000GJk-Ve for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Apr 2020 04:28:19 +0200 Original-Received: from localhost ([::1]:46148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJT75-0003bh-1i for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 22:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39550) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJT6c-0003BR-N3 for emacs-devel@gnu.org; Tue, 31 Mar 2020 22:27:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJT6c-0000lH-Az; Tue, 31 Mar 2020 22:27:50 -0400 Original-Received: from [176.228.60.248] (port=1940 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jJT6Z-00085p-Im; Tue, 31 Mar 2020 22:27:48 -0400 In-Reply-To: (message from Dmitry Gutov on Tue, 31 Mar 2020 22:50:43 +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:246179 Archived-At: > Cc: monnier@iro.umontreal.ca, casouri@gmail.com, akrl@sdf.org, > emacs-devel@gnu.org > From: Dmitry Gutov > Date: Tue, 31 Mar 2020 22:50:43 +0300 > > >> (benchmark 1 '(progn (find-file "src/xdisp.c") (goto-char (point-max)))) > >> > >> => Elapsed time: 1.940401s (0.376140s in 6 GCs) > > This doesn't measure the redisplay (which happens after the above > > command returns). > > Which means that the current state of affairs is even slower. No, it means that whatever delay we will have with parsing the entire buffer is _in_addition_ to whatever you measured.