From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ravine Var Newsgroups: gmane.emacs.bugs Subject: bug#25706: 26.0.50; Slow C file fontification Date: Fri, 11 Dec 2020 16:25:20 +0530 Message-ID: <87ft4czjri.fsf@gmail.com> References: <53CC4F6E-716E-4D4B-8903-F32CCB676163@acm.org> <05F2A660-A403-4B81-AE77-416A739160A7@acm.org> <878sa7h1a2.fsf@gmail.com> <878sa5twmq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18951"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Lars Ingebrigtsen , 25706@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 12:05:22 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kngEj-0004mw-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 12:05:21 +0100 Original-Received: from localhost ([::1]:34226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kngEi-0005O4-Cr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 06:05:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kngEP-0005Nt-Vp for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 06:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kngEP-0004hX-Od; Fri, 11 Dec 2020 06:05:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kngEP-0002rs-KO; Fri, 11 Dec 2020 06:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ravine Var Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 11 Dec 2020 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25706 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 25706-submit@debbugs.gnu.org id=B25706.160768469411006 (code B ref 25706); Fri, 11 Dec 2020 11:05:01 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 11 Dec 2020 11:04:54 +0000 Original-Received: from localhost ([127.0.0.1]:40233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kngEI-0002rS-8U for submit@debbugs.gnu.org; Fri, 11 Dec 2020 06:04:54 -0500 Original-Received: from mail-pg1-f173.google.com ([209.85.215.173]:41274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kngEG-0002rE-6A for 25706@debbugs.gnu.org; Fri, 11 Dec 2020 06:04:53 -0500 Original-Received: by mail-pg1-f173.google.com with SMTP id n1so4159109pge.8 for <25706@debbugs.gnu.org>; Fri, 11 Dec 2020 03:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=KIqowZ1c51GEKWYpy/JzTIj+zjMDG5n3mrUrZBQBTP8=; b=UDo9pvjx3bgU8ZjDTd3Cvuvtd0ppMzX2KRfrUm+xq2CUlLrrDzTjg0+G0QHz+Lq5y3 gEhQLReWYmKsebpDwVhfGQuPop+vYl6p4rL8CYKOvOP32aZVlkDLctjt6frTXk2LvMAB 4Cp+hY9hlHDgWl8O2Cl1w6+pCP0swAnVdhBf6H+X6xAPE94hfSBcXB+Lu2JRf8rJX26h 2mhufUBT+TH0EpYtggDsaeydhlQWA+FCZdLBkLDNPimU7b+F2mZvNq6ND4WXhQ6tItIm vVbCYguA0YiH5xH9Qt9wB0VUmRDaZ9yo/HfVrGlZ304IToQLb7+U9Z/JLOHyQvuSqp1B kKAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=KIqowZ1c51GEKWYpy/JzTIj+zjMDG5n3mrUrZBQBTP8=; b=oBql+/gJ1k36hOdwPFaUeRlAvtJYCtJ1wq3+rfhWdFF7zDpSWLSPKzUcrosyvIqDlm nGI1bdaimAGQPgkT+n3g08bB4Omn6CFY5cgWPyMukIGmpJuIw+PXIPvdTOc37yUGPEnb 5zagvjYIHEYrgk5+zisLFEI+Ng84xjoZRKmGW4FNyhGaZVP5NM8hx++6B9qZc1MbALsE y3kSMnKxRyEy6tZO+QUCzeqMuhq0zSJl92VbU9ba+SAEN2fPi8x/Ch8VtOC0YKgqN+L2 pPnpEUIcwPwzhN3ELfAqcEKzMI3AfOjNFNVnEzBr4dRBimF1L6KkK2H3gNLFrVxb6tNE Xbeg== X-Gm-Message-State: AOAM530GVaG3n5tYHXld3kkm4jEbduqEpMVMdInt7DMKPNbhSOkwQQW9 vrL8HSjbSLIJLJr0CK5/n9aXqSj2KaU= X-Google-Smtp-Source: ABdhPJyQRH4Bjyxh/WL6W35xCBf2DBziVS+7roo1hmg08YsziTAdXPLZuq0PdCj5cKO40CbM5MM8+Q== X-Received: by 2002:a63:4102:: with SMTP id o2mr11171990pga.166.1607684686003; Fri, 11 Dec 2020 03:04:46 -0800 (PST) Original-Received: from ryzen-mach ([2409:4072:e87:49af:4b4a:d2e8:6eaf:82aa]) by smtp.gmail.com with ESMTPSA id gw21sm9696526pjb.28.2020.12.11.03.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 03:04:45 -0800 (PST) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195742 Archived-At: Alan Mackenzie writes: > To fix this, can I ask you, please, to try adding the following patch to > your already patched software, and let me know if it helps at all. If > it does, that's great, if not, could I ask you to do another profile for > me on the less powerful machine, say by opening the buffer, starting the > profiler, then moving to the middle of the buffer with C-u 5 M->. This > may take some time to profile. Thanks! Doing C-u 5 M-> just jumps to the middle immediately. The problem happens when the file is opened and I start scrolling with C-v. With the new patch, things are still bad - emacs freezes almost instantly. I tested with 3 patches applied from messages 35, 95 and 128. Here's the profile with emacs -Q : https://gist.github.com/ravine-var/48b3e1469ac5a7f3c3df8d6d9313661a