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:17:23 +0530 Message-ID: <874kkvh0ne.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> <878sa7h1a2.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="22495"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 To: 25706@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 09 08:59:25 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 1kmuNg-0005ke-Pf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 08:59:24 +0100 Original-Received: from localhost ([::1]:42628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmuNf-0000fg-Lx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 02:59:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmuNO-0000fJ-F5 for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 02:59:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmuNJ-0001zk-TJ; Wed, 09 Dec 2020 02:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmuNJ-0000ii-RK; Wed, 09 Dec 2020 02:59: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:59: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.16075006872702 (code B ref 25706); Wed, 09 Dec 2020 07:59:01 +0000 Original-Received: (at 25706) by debbugs.gnu.org; 9 Dec 2020 07:58:07 +0000 Original-Received: from localhost ([127.0.0.1]:60878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmuMR-0000hW-Aw for submit@debbugs.gnu.org; Wed, 09 Dec 2020 02:58:07 -0500 Original-Received: from mail-pl1-f173.google.com ([209.85.214.173]:43988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmuMP-0000h2-KG for 25706@debbugs.gnu.org; Wed, 09 Dec 2020 02:58:06 -0500 Original-Received: by mail-pl1-f173.google.com with SMTP id x12so38697plr.10 for <25706@debbugs.gnu.org>; Tue, 08 Dec 2020 23:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=33JlRL68wkq0rYEkFpN04DjbbtFNbpq9wz1Np1/epIc=; b=qwl5HAcP7W7C3u4ewAFcq+BFu3vpvKYEoYl7JZkV0M2dI6eT3ya0aZlfp0tmtkVX1O SDh7ynAqaFjzQ+pxlL4W5z4oO3ZDpH+8iXa3wcfonMAn7BYk+JEYb8wLJm33ZThJe+vb PVpM3n38dZxZhdJxVziVlz95IUqhIJY3B/XGISs/v3YulzhxKwLA3KeHvlW3qtxeSys8 Df8jaocgbR3CXxQA/h0iHI+c3eszoohIUWAsjTPGw+rFKEIcUxwVyGUinO8v/toveUyk VFgC1zd4E0S1gmNS4pGBpJR4YRkA4UdQIx+yJHiwsC5By9WGIY3pBEzsJT6c9m4bET2R mXSQ== 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:subject:date :in-reply-to:message-id:mime-version; bh=33JlRL68wkq0rYEkFpN04DjbbtFNbpq9wz1Np1/epIc=; b=EqZULjvSKuP2twJZ7yTDNBcp0G+sJWBbcapm9baaaLj4vPdMjwB6gm7HqXQfwVDc7l Mpfe9ORmE5uYH2krjQ3CR+z8IJEIHKCvdUgBJOM8wJLoQC2EIY/uTipK8MLSWugUA0jZ F7ynb7RfeUMFKg98iCDg4J/uD14+XmvVbOrdQ0dL9UHfKn13kBo6P95ae55BaduIYIwM fIGYEPe8FmUiCdP4/7w5HF4hoi33qZ/sww4Qjed3B2TAq4lIL1Bn6RHf4ddmagoMVaI4 S2yB2S9q1c7Aug8rV6igyRgJaUQS1Yl1++CZTbj5KNb8Fp/sYc9UFs2KnKifsV+Bt8DY xZgg== X-Gm-Message-State: AOAM532xp89sEYRAqVFYVwnXUH0EU29CWVqIW6zaz9d8ovG1m2NcvYNr d1ydMLD61CQNCU426D+esovisi0frbY= X-Google-Smtp-Source: ABdhPJyF5/EDFGq+fhg/VIeG1z443EBFbJjO1U4bc8I4QNhI+zzSyF7WNI2rUgOZCE9r4fBB2k679A== X-Received: by 2002:a17:902:bb8c:b029:d9:261:5809 with SMTP id m12-20020a170902bb8cb02900d902615809mr962790pls.29.1607500679249; Tue, 08 Dec 2020 23:57:59 -0800 (PST) Original-Received: from ryzen-mach ([2409:4072:e87:49af:4b4a:d2e8:6eaf:82aa]) by smtp.gmail.com with ESMTPSA id a10sm1315263pfi.168.2020.12.08.23.57.57 for <25706@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 23:57:58 -0800 (PST) In-reply-to: <878sa7h1a2.fsf@gmail.com> 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:195477 Archived-At: I came across another place where a similar lockup happens (even with the patches posted here). https://gitlab.com/wireshark/wireshark/-/raw/master/epan/dissectors/packet-rrc.c Towards the end of the file, once we get to the function proto_register_rrc(void), the slowdown of scrolling starts and eventually things freeze. Just copying that function to a smaller C file is enough to reproduce the issue. (I found that C-M-h is a nifty command to do this.) I can open a new bug report if required.