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: Wed, 09 Dec 2020 13:01:31 +0530 Message-ID: <878sa7h1a2.fsf@gmail.com> References: <956BCA08-0376-4FAD-B1F7-2087C03F6181@acm.org> <53CC4F6E-716E-4D4B-8903-F32CCB676163@acm.org> <05F2A660-A403-4B81-AE77-416A739160A7@acm.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3597"; 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 Wed Dec 09 08:46:16 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 1kmuAy-0000nb-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 08:46:16 +0100 Original-Received: from localhost ([::1]:37820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmuAw-00068y-P3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 02:46:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmuAj-00068i-VQ for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 02:46:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmuAj-0004KT-Oe; Wed, 09 Dec 2020 02:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmuAj-0000Pb-Lu; Wed, 09 Dec 2020 02:46: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: Wed, 09 Dec 2020 07:46: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.16074999061512 (code B ref 25706); Wed, 09 Dec 2020 07:46:01 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 9 Dec 2020 07:45:06 +0000 Original-Received: from localhost ([127.0.0.1]:60867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmu9p-0000OK-Ug for submit@debbugs.gnu.org; Wed, 09 Dec 2020 02:45:06 -0500 Original-Received: from mail-pg1-f176.google.com ([209.85.215.176]:32980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmu9m-0000NV-Fr for 25706@debbugs.gnu.org; Wed, 09 Dec 2020 02:45:05 -0500 Original-Received: by mail-pg1-f176.google.com with SMTP id o4so697251pgj.0 for <25706@debbugs.gnu.org>; Tue, 08 Dec 2020 23:45:02 -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:message-id :in-reply-to:mime-version; bh=nA3mAcU195xe3vS5JXt3J56GTTp19lGFvdYdCMvnyR8=; b=n3Fs83gynzfETmH0946OS9nmjIMVgascWyYIOFjWcKBEu1MAacDvBmp2qKQXP0YrXz UrT9nYdboQ8RTkwlIHgl5v9SiCbO+KNg1xyoyVN4HA7NG6BZQ/u7vw3UCMlXapqrz8PQ 4ys4FoTfGZSrrhpCTYfYvmiozqTFBma+QqwFE2j18JkJ52QWVyqbvCmPxaDn83zjNjrp eAX0fLS4bzhKJVekvzVYiAGj4drO7O5OlkSGQakrjlOEBFgwWQXzbuc3dLoHlXnxLiLM lT1SuB2SdQsG/knSGc6okptzzPuhN1IpbA5KvgJkJLxANhBXHT75LUWR0F57RpZyB5i1 QF5g== 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 :message-id:in-reply-to:mime-version; bh=nA3mAcU195xe3vS5JXt3J56GTTp19lGFvdYdCMvnyR8=; b=kvRTReSP0x5lpZo3zMCnLqwhhZ8Wr1KCiP03cS22LdZk0EntkLY24BOP3QB+hga25C 7P94wfIVI1FAZcq6/fHtOQ3WqKOyfIEdrfbhIFe2LVA21NuGfvTtR6ISu+F7seUEg1AM HkOhjmLf8GL6Hw5WRXR/NAII+5wDhrTMI4eq/bzrNUDu4wCUz8xd+hEywtNIttMd6+bK xzIzSqidJan2R4Y7d7UYdkjnR0KYjb1QCPAFhShDrTLjDFqnqzTpDyzUIItBvKKPeYNi XiuTMQ47kvyeafCG1mcrZomfMRchyFWcr+vyNW6aMUjVe4XaYtIQ+n2RxpfvpKIOfhZY cYBg== X-Gm-Message-State: AOAM531OJTs6jyacV2hMBpHMIp/D4vr34PTjy7sz68jTgxjzE+awBl58 vXUlGbGFs+33SR0dbjzFAhv+2jfbngQ= X-Google-Smtp-Source: ABdhPJwmTfKMqyn3D8HBOFVFd2px6BCQNAmVfbKdL/udF1t69dgUxDz6DJQVs6CCn9Q0LMCmlR9r3g== X-Received: by 2002:aa7:91cd:0:b029:19d:b10c:7f89 with SMTP id z13-20020aa791cd0000b029019db10c7f89mr1208065pfa.43.1607499896091; Tue, 08 Dec 2020 23:44:56 -0800 (PST) Original-Received: from ryzen-mach ([2409:4072:e87:49af:4b4a:d2e8:6eaf:82aa]) by smtp.gmail.com with ESMTPSA id 19sm1247986pfn.133.2020.12.08.23.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 23:44:55 -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:195476 Archived-At: Alan Mackenzie writes: > Anyhow, please try out the (?)final version of my patch before I commit > it and close the bug. It should apply cleanly to the master branch. I > might well split it into three changes, two small, one large, since > there are, in a sense three distinct fixes there. I tested this patch, along with Mattias' patch posted earlier, on two machines. On a reasonably fast machine (AMD Ryzen 3 3200G with 16 GB RAM), there is a marked improvement in visiting and scrolling the header files in the linux kernel tree. The complete lockups that happened earlier did not happen. I also tested the patches on a Chromebook (Intel Celeron N2840 with 4GB RAM), which is similar to the machine in the original report. Unfortunately, the behavior was still bad, with lockups and freezing. I tried both c-mode and c++-mode with font-lock-maximum-decoration set to 2.