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: Tue, 31 Mar 2020 20:50:50 +0300 Message-ID: <83369o1khx.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15663"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Tu=E1=BA=A5n?= Anh =?utf-8?Q?Nguy=E1=BB=85n?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 31 19:55:16 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 1jJL6a-0003yZ-IV for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 19:55:16 +0200 Original-Received: from localhost ([::1]:42496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJL6Z-0003el-Kj for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 13:55:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53790) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJL26-00070d-Tq for emacs-devel@gnu.org; Tue, 31 Mar 2020 13:50:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJL26-0001Jy-Q0; Tue, 31 Mar 2020 13:50:38 -0400 Original-Received: from [176.228.60.248] (port=2438 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jJL25-0002mO-TD; Tue, 31 Mar 2020 13:50:38 -0400 In-Reply-To: (message from =?utf-8?Q?Tu=E1=BA=A5n?= Anh =?utf-8?Q?Nguy=E1=BB=85n?= on Wed, 1 Apr 2020 00:07:27 +0700) 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:246138 Archived-At: > From: Tuấn Anh Nguyễn > Date: Wed, 1 Apr 2020 00:07:27 +0700 > > > xdisp.c comes to mind, obviously. > > On my machine, a 3.39 GHz Intel Core i7: > > (0.150791 0 0.0) ; 1 full parse How did you submit xdisp.c to the parser? In any case, IIUC, the first time a buffer needs to be displayed, we need to wait for these 150 msec? That's annoyingly long (and I suspect in real Emacs usage will be significantly longer, due to memory allocation, encoding, etc.).