From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#48871: 27.2; Unusably slow in C# mode Date: Sun, 6 Jun 2021 19:27:49 +0000 Message-ID: References: <835yyri2f2.fsf@gnu.org> <83y2bngl0b.fsf@gnu.org> <83v96rgc6w.fsf@gnu.org> <83o8cihnm1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22944"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48871@debbugs.gnu.org To: jan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 06 21:28:16 2021 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 1lpyRU-0005jP-6r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Jun 2021 21:28:16 +0200 Original-Received: from localhost ([::1]:55522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpyRT-0006U6-8m for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Jun 2021 15:28:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpyRH-0006Px-2q for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2021 15:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpyRG-0006Ge-SX for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2021 15:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpyRG-0003jj-PS for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2021 15:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Jun 2021 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48871 X-GNU-PR-Package: emacs Original-Received: via spool by 48871-submit@debbugs.gnu.org id=B48871.162300767914347 (code B ref 48871); Sun, 06 Jun 2021 19:28:02 +0000 Original-Received: (at 48871) by debbugs.gnu.org; 6 Jun 2021 19:27:59 +0000 Original-Received: from localhost ([127.0.0.1]:53950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpyRD-0003jG-Dq for submit@debbugs.gnu.org; Sun, 06 Jun 2021 15:27:59 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:29900 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1lpyRA-0003iu-T9 for 48871@debbugs.gnu.org; Sun, 06 Jun 2021 15:27:57 -0400 Original-Received: (qmail 93307 invoked by uid 3782); 6 Jun 2021 19:27:50 -0000 Original-Received: from acm.muc.de (p2e5d5696.dip0.t-ipconnect.de [46.93.86.150]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 06 Jun 2021 21:27:49 +0200 Original-Received: (qmail 9299 invoked by uid 1000); 6 Jun 2021 19:27:49 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:208153 Archived-At: Hello, Jan and Eli. On Sun, Jun 06, 2021 at 19:22:17 +0100, jan wrote: > Ah... well... yeah... > searching for "c-pps-to-string-delim" finds this > , similar to > what I referenced in my initial post. > Neither are very optimistic. If this is a wontfix I'll understand. This is indeed a string problem in CC Mode. More precisely, it's a multi-line string problem, such being started in C# mode by @". For some very bad reason (which I've got written down somewhere) CC Mode is scanning to the end of the buffer for each character inserted. Sorry. As a workaround, if you don't have any multi-line strings in your source, put the following in your csharp-mode-hook: (setq c-multiline-string-start-char nil) .. That should get rid of the excessive scanning for the time being. I've spent much of the last few weeks adapting the C++ raw string mechanism also to handle multi-line strings in other languages such as C#. I'm hoping to have it up and running soon. Then, perhaps, the C# Mode maintainer will incorporate it into C# Mode, which should be a straightforward task. > cheers > jan > On 06/06/2021, Eli Zaretskii wrote: > >> From: jan > >> Date: Sun, 6 Jun 2021 19:00:57 +0100 > >> Cc: Alan Mackenzie , 48871@debbugs.gnu.org > >> Looks like strings doing it. > > Well, the fact that c-pps-to-string-delim is the hot spot kinda says > > that... -- Alan Mackenzie (Nuremberg, Germany).