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: Tue, 01 Dec 2020 11:18:40 +0530 Message-ID: <87o8jecc07.fsf@gmail.com> References: <55C404DC-1C29-449F-9A49-B20EDFFCFCEA@acm.org> <86EC566E-0CE6-4D98-9025-0C0551CE1546@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10902"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 Cc: Alan Mackenzie , Lars Ingebrigtsen , 25706@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 06:50:10 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 1kjyYE-0002jK-CV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 06:50:10 +0100 Original-Received: from localhost ([::1]:33756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjyYD-000177-BR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 00:50:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjyY6-00016w-Fe for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 00:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjyY6-0005xp-8A; Tue, 01 Dec 2020 00:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjyY6-00058i-6o; Tue, 01 Dec 2020 00:50:02 -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: Tue, 01 Dec 2020 05:50:02 +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.160680175219684 (code B ref 25706); Tue, 01 Dec 2020 05:50:02 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 1 Dec 2020 05:49:12 +0000 Original-Received: from localhost ([127.0.0.1]:57486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjyXI-00057Q-2j for submit@debbugs.gnu.org; Tue, 01 Dec 2020 00:49:12 -0500 Original-Received: from mail-pf1-f181.google.com ([209.85.210.181]:42064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjyXG-00057A-FD for 25706@debbugs.gnu.org; Tue, 01 Dec 2020 00:49:11 -0500 Original-Received: by mail-pf1-f181.google.com with SMTP id 131so378968pfb.9 for <25706@debbugs.gnu.org>; Mon, 30 Nov 2020 21:49:10 -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:in-reply-to:message-id :date:mime-version:content-transfer-encoding; bh=/v3+MJbIJPfxkUbvrH9oq0e0GXwKP4JKOuz7cS7yAnk=; b=S98/O3tvSypEiF5H/LSawePCuylMdYEFIacLD2JZbkxhXUDOZj11WXrc6jjBUPPGui WWftDio47reeWFmOmFeZWcnYs/fLItMREkki1U1Z6qeS0c2giDt2jGRNCzNNYNSDPaF/ Gu+H295bll1kLZOCHC//RiNLkJUwPkEb2b3mtzuj5e1r0CBBOtPk1LW8brRswSgnmonx vByjWS7wJq1Z1ra0StFwo7DIwHMLBQOI27DMDToXQjnVAtj00Bw7mP7ih1OerLEOJbdR agpakUQuCWuujvP7g2/ix2F5IPEaQp7Dqpd8LR4EU5hPCKrWuHtnoJlhkuFRsZaTifpS owpQ== 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 :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=/v3+MJbIJPfxkUbvrH9oq0e0GXwKP4JKOuz7cS7yAnk=; b=cE4BL4hXopnb16v70qPZgTpi0n3qNQB4YLXxhA1UzU1yuPOAPXYBLQhYgRmWw5wh3M 2yzK51ZT2CPuGZGhUiJMO5+bpDNQxV6MCiArP4wAdsUfv5BEAEODv0Ks4mC3d/OT9m7X BL0lhvqMighv5cb2mBKmIc2Zwe7cltZQoit8A4I7q1PB5Fpvdk0cGsyxUR508yU1xBbQ G+Y45F+ThxqNbDNo9o2lWCXOcn9X1Zy9zfmm2zs/fM8Z98ClIqLqKyUOsf9USyPDPqWW VzzZoVjf4UogI9I4XoXQjyHIiEPVp7H+oVaemknvpRG8CSa2B01eWDL5ZwNay9FXYCmM UMeA== X-Gm-Message-State: AOAM533Kj+sWCeS13cExgMdFJ6NBBVWKovba7DTwEzM3NmPRomWRB4ln yEgtVUkCEFohzXFuZdLFg0kZfrXrpJA= X-Google-Smtp-Source: ABdhPJwCS8Dmop9AkcTaGaoKFraaiXNhvUf5gSYyCrLkC/3dvlrPEznK1rR60KIC7ccYHQfQoSNC1w== X-Received: by 2002:a63:f64c:: with SMTP id u12mr918028pgj.325.1606801744028; Mon, 30 Nov 2020 21:49:04 -0800 (PST) Original-Received: from ryzen-mach ([2409:4072:618b:eead:fcc8:a1bc:b6da:8d48]) by smtp.gmail.com with ESMTPSA id t12sm981965pfq.79.2020.11.30.21.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 21:49:03 -0800 (PST) In-reply-to: <86EC566E-0CE6-4D98-9025-0C0551CE1546@acm.org> 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:194707 Archived-At: Mattias Engdeg=C3=A5rd writes: > Found it. Suggested fix attached. > > It can be improved: at least one pair of regexp group brackets can be > removed, but I didn't dare doing so because I wasn't sure if it would > throw some group numbers off by one. Thanks for working on this ! Will this patch fix the problem with big header files like the one originally reported ? I tested this patch and the issue is still there. Also, such header files are very common. For example: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/dri= vers/gpu/drm/amd/include/asic_reg