From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jan via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48871: 27.2; Unusably slow in C# mode Date: Wed, 9 Jun 2021 12:06:45 +0100 Message-ID: References: <835yyri2f2.fsf@gnu.org> <83y2bngl0b.fsf@gnu.org> <83v96rgc6w.fsf@gnu.org> <83o8cihnm1.fsf@gnu.org> Reply-To: jan Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31610"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 48871@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 09 13:11:40 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 1lqw7X-00081i-UH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 13:11:39 +0200 Original-Received: from localhost ([::1]:41928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqw7X-0006Cm-0C for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 07:11:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqw34-00047L-0t for bug-gnu-emacs@gnu.org; Wed, 09 Jun 2021 07:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqw33-0004Dg-Q5 for bug-gnu-emacs@gnu.org; Wed, 09 Jun 2021 07:07:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqw33-0005Hh-JY for bug-gnu-emacs@gnu.org; Wed, 09 Jun 2021 07:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jun 2021 11:07:01 +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.162323681420296 (code B ref 48871); Wed, 09 Jun 2021 11:07:01 +0000 Original-Received: (at 48871) by debbugs.gnu.org; 9 Jun 2021 11:06:54 +0000 Original-Received: from localhost ([127.0.0.1]:60629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqw2v-0005HI-NF for submit@debbugs.gnu.org; Wed, 09 Jun 2021 07:06:53 -0400 Original-Received: from mail-pl1-f170.google.com ([209.85.214.170]:45864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqw2u-0005H4-5P for 48871@debbugs.gnu.org; Wed, 09 Jun 2021 07:06:52 -0400 Original-Received: by mail-pl1-f170.google.com with SMTP id 11so12322212plk.12 for <48871@debbugs.gnu.org>; Wed, 09 Jun 2021 04:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+zDOls75gtRdEVL74JEs/ywzuZmBOnrD0/TJTv+iBEk=; b=qHqOfWfkCgxtf7dpnNf4FAiQxCjfMs2RfnwA23sK7jmGXBUc0lD29jHtvrrkKWdD0R 4rEDJNWPalapZDZ5MYfHD9FcvyJKdTHXDUqs25YpKcjCOReSQVs+/LNHKXuGdulEaszf H5EORTU9VZB8Bqe4VyiX62KHJDOwBbrOKkEiSHhdWvxvOR5kOLiHe1pB/Fh39SRE06+2 XsVkqnMWGBNuoPuC1QqLFTdCHj+bxvjOah45m08zKplxDuHSggnbxCtdERsXYwQPPltW XUH3LekJa4lcJvmpD+UXIc2PCVBS4xETWoBrw6XwpIqSkv6yTzV8iJOIk/no8TETLaPd mzCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+zDOls75gtRdEVL74JEs/ywzuZmBOnrD0/TJTv+iBEk=; b=shUA630qv89CfM7uN0MogYoGe+Go7t3xzMIuIomg8Hjj+ANfrr9XAU9Zfgo3847Cbv IUofAyisSowRWJyYjGSl2LQEmy2ed6d/7tu9KnsBu8V1+N2sbOvDHPBmG/Zh6DPw4YPg GtmW3kLxUsGxJuIeT9A9HoUXyFglgv7rXrsEBl/3SUNdtQ6jST28J40V7OzwUkJcfCVQ C3r2IxUKxkxK/eWs5fMK21GfC2+JU3Ry8kjJ7YF3BcXTbb64qZ77qHsWQfy4N2Gh24l5 7g08u//HWIU0QIZ/OLVkhAL7eeseX8Tf/V9f1x2+HcG2mXN+mmBom7NS8FbOfAd8VS9N G+oQ== X-Gm-Message-State: AOAM533zi4V0CZ6Wu0jPNILbm5Bc3wKxbZ1mC6vCIZILKOv1jA5QgYPN ptNGop9g8iqbZ/Y5ce7rzPgLNeR1mCW3gzgzniA= X-Google-Smtp-Source: ABdhPJyVjMxLG06ms2c5SfOBOss2oom0rctp9fPMVj/FS2zjY/Ae3qJnl6tlRUsiNhjp6ZrYPjKxgnHVqtFAHcpYYIo= X-Received: by 2002:a17:90a:a607:: with SMTP id c7mr31440059pjq.199.1623236806309; Wed, 09 Jun 2021 04:06:46 -0700 (PDT) Original-Received: by 2002:a17:90a:e289:0:0:0:0 with HTTP; Wed, 9 Jun 2021 04:06:45 -0700 (PDT) In-Reply-To: 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:208284 Archived-At: I forgot to provide feedback to this list, this workaround restored performance. jan (Thanks to Alan Mackenzie for this, and his continuing work to fix the underlying problem) On 06/06/2021, Alan Mackenzie wrote: > 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). >