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 19:17:06 +0300 Message-ID: <837dsgqzr1.fsf@gnu.org> References: <87lfgwwzw6.fsf@thornhill.no> <83pn68rcio.fsf@gnu.org> <87eemo4sor.fsf@thornhill.no> <83o8lsr6vq.fsf@gnu.org> <877dsgle4h.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29458"; 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 18:18:11 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 1kMCtn-0007aY-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 18:18:11 +0200 Original-Received: from localhost ([::1]:60106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMCtm-0007Vn-CP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 12:18:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMCte-0007U9-DO for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 12:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36112) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMCte-0006Qq-3P for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMCtd-0008Mh-OU for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 12:18: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 16:18: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.160113704032106 (code B ref 43631); Sat, 26 Sep 2020 16:18:01 +0000 Original-Received: (at 43631) by debbugs.gnu.org; 26 Sep 2020 16:17:20 +0000 Original-Received: from localhost ([127.0.0.1]:47658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMCsy-0008Ll-Cx for submit@debbugs.gnu.org; Sat, 26 Sep 2020 12:17:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMCsw-0008LZ-EE for 43631@debbugs.gnu.org; Sat, 26 Sep 2020 12:17:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34236) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMCsr-0006OW-1p; Sat, 26 Sep 2020 12:17:13 -0400 Original-Received: from [176.228.60.248] (port=4634 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kMCsn-0006KU-AP; Sat, 26 Sep 2020 12:17:11 -0400 In-Reply-To: <877dsgle4h.fsf@thornhill.no> (message from Theodor Thornhill on Sat, 26 Sep 2020 18:03:10 +0200) 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:189052 Archived-At: > From: Theodor Thornhill > Cc: 43631@debbugs.gnu.org > Date: Sat, 26 Sep 2020 18:03:10 +0200 > > > Thanks, but please post the text of Profiler-Report buffer, not the > > internal structure it produces. > > Ok, third time's the charm: Thanks. This seems to indicate that this loop in c-pps-to-string-delim is the culprit: (while (progn (parse-partial-sexp (point) end nil nil st-s 'syntax-table) (unless (bobp) (c-clear-syn-tab (1- (point)))) (setq st-pos (point)) (and (< (point) end) (not (eq (char-before) ?\"))))) But I'm confused why the "fast" profile starts with font-lock-fontify-region, whereas the "slow" profile doesn't have font-lock-fontify-region anywhere... Hopefully, Alan can take it from here.