From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) Date: Wed, 1 Apr 2020 18:22:00 +0300 Message-ID: References: <83imik1qbq.fsf@gnu.org> <835zek1kpv.fsf@gnu.org> <83v9mkz5oo.fsf@gnu.org> <83pncsym6l.fsf@gnu.org> <4a9d6bb2-458d-89b0-5389-d1f883ef24a1@yandex.ru> <20200401135237.GA6240@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="95561"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: casouri@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, akrl@sdf.org To: Alan Mackenzie , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 01 17:22: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 1jJfCW-000Oha-0X for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Apr 2020 17:22:44 +0200 Original-Received: from localhost ([::1]:33584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJfCV-0007DP-0E for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Apr 2020 11:22:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44020) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJfBu-0006lD-0a for emacs-devel@gnu.org; Wed, 01 Apr 2020 11:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJfBt-00035u-1H for emacs-devel@gnu.org; Wed, 01 Apr 2020 11:22:05 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:54267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJfBs-00033c-Qh; Wed, 01 Apr 2020 11:22:04 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id d77so101388wmd.3; Wed, 01 Apr 2020 08:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=f77nyKbbFpjhrMCGSZwTRZBw+/ZR/8GGImquU8axkF0=; b=D0tAFhbqrwwd6k2c25lL2wBKV6sYcc4DHv6DM+FpJGxmM83HJvbebY7QLJAe4UUI0Z gPAlnPZpRPpDQeg1n/coG5q6JmDrVZtmQYGqaEfNZiSJE6HHRRrx8esBlhwvqRVWFEV0 K3B1qYSDUgmmGfl1daoWk5terMdMRnZtFE5R9gUCugbDRPt5kt54l5mraXwwENjsYFsD OC+38IIu7Ew2SgfTY2M4KjFFqef77GUZAB+9UC9qchQnZqtCJxcSTVnYnviJtobPcUr8 s0C0ahI0KtpjIc4NgYqHE2L8x8/RhfG+Y7NqlKjtSguy0X4NFaBHKyywVSZ+IU4H+ovh 5quQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f77nyKbbFpjhrMCGSZwTRZBw+/ZR/8GGImquU8axkF0=; b=q7uMxAXP6EzZvhVQcj62SL/8DLAgsqzLv6snJ0dbWrRUryicbRswbkBNJbKV+YZFFx S1aU+SgI6vCzuV59JK93+Jn0a6Oo0iGWWs/YCyoY2kKZG506C5z5LCrgm8P/4oWwl+XY 5XgQIz2oYFKTdi1Q8dY5rg77d96FI8aGuetCrA+J+Fr4+P2f9zicXypOG2fxNFJycNqS OAZJ/WUpcMM9hAJVfwjz016zzt9cPofg7bKl2fxxrlvUBYP+NA/INWSzCp2J5c4Afs97 joQqgQt06UToCymKf6gMUR2BWx6SU9eMR5HDt6lQCpZ4xcsFBaSJ13abfmJkPYbOiQxD /Isw== X-Gm-Message-State: AGi0PuZEpIHkaK+rQW9D0GR5a40HVNjptmRMLwjfmlGUL9qSMK7uhNm5 tvGotgGMZcmCktQI4piGApxuiLzA X-Google-Smtp-Source: APiQypKgigKtLKpyRXgr9WcKlwEQy3CjiViQKmOQytQgpyfQPyrncE5yjVZzZCmUQe3ZrXP3UjUm1g== X-Received: by 2002:a1c:6608:: with SMTP id a8mr4652770wmc.113.1585754523396; Wed, 01 Apr 2020 08:22:03 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id o145sm3179575wme.42.2020.04.01.08.22.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Apr 2020 08:22:02 -0700 (PDT) In-Reply-To: <20200401135237.GA6240@ACM> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::332 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:246201 Archived-At: On 01.04.2020 16:52, Alan Mackenzie wrote: > This doesn't seem to affect starting up performance that badly. On my > machine (a 3 yo AMD Ryzen) visiting xdisp.c (including the fontification > of the first screenful of comments) is taking 0.18s. Interesting. How do you measure it exactly? Do you kill the buffer between tries? I have a fast Intel CPU that is barely 2 years old (i9-8950HK), system-configuration-options is "--with-x-toolkit=gtk3 'CFLAGS=-Og -g3'", the build is from emacs-27 branch, recent revision. With 'emacs -Q' it's a little faster, but still (benchmark 1 '(progn (find-file "src/xdisp.c"))) prints out Elapsed time: 0.968598s (0.144805s in 8 GCs)