From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43631: 28.0.50; CC Mode multiline strings grinds performance to a halt Date: Sat, 26 Sep 2020 14:41:19 +0300 Message-ID: <83pn68rcio.fsf@gnu.org> References: <87lfgwwzw6.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11279"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43631@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 26 13:42:39 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 1kM8b8-0002pe-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 13:42:38 +0200 Original-Received: from localhost ([::1]:54458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM8b7-0001gg-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 07:42:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM8ae-0001gQ-T6 for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 07:42:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM8aX-00072l-Vk for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 07:42:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kM8aX-0001EU-Ty for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 07:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Sep 2020 11:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43631 X-GNU-PR-Package: emacs Original-Received: via spool by 43631-submit@debbugs.gnu.org id=B43631.16011204764680 (code B ref 43631); Sat, 26 Sep 2020 11:42:01 +0000 Original-Received: (at 43631) by debbugs.gnu.org; 26 Sep 2020 11:41:16 +0000 Original-Received: from localhost ([127.0.0.1]:45987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM8Zn-0001DP-PI for submit@debbugs.gnu.org; Sat, 26 Sep 2020 07:41:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM8Zl-0001DA-4p for 43631@debbugs.gnu.org; Sat, 26 Sep 2020 07:41:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59199) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM8Ze-000706-U7; Sat, 26 Sep 2020 07:41:07 -0400 Original-Received: from [176.228.60.248] (port=3399 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kM8Ze-0005mq-8z; Sat, 26 Sep 2020 07:41:06 -0400 In-Reply-To: <87lfgwwzw6.fsf@thornhill.no> (bug-gnu-emacs@gnu.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:189014 Archived-At: > Date: Sat, 26 Sep 2020 13:17:29 +0200 > From: Theodor Thornhill via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > While creating a new mode derived from CC Mode, we noticed performance > is affected heavily when setting a character for > 'c-multiline-string-start-char'. There is a discussion around this that > can be found at https://github.com/josteink/csharp-mode/issues/164, > and we were given an easily reproducible repo for this. It is verified > to slow typing down both in 'csharp-mode', 'pike-mode' and in this test > case: > https://github.com/unhammer/csharp-mode/tree/164-repro > > I think (unconvincingly) that some of the problematic code is situated > around line 2047 in 'cc-mode.el', but this is only a guess taken from > some light profiling. All the profiles posted there end prematurely, thus making it impossible to make independent conclusions regarding the possible culprits. Would it be possible to post here a full profile, completely expanded, obtained after loading all the relevant *.el files as *.el (NOT *.elc!), so that the profile is detailed enough to show the relevant parts? It would make the discussion much more focused. Bonus points for posting another profile, where the feature you think is the main culprit is disabled. TIA