From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Hecker Newsgroups: gmane.emacs.bugs Subject: bug#33670: 26.1; very large c++-mode yank performance regression 25.3_1-x86_64 -> 26.1-x86_64 Date: Sun, 9 Dec 2018 09:57:10 -0800 Message-ID: References: <20181208204036.61878.qmail@mail.muc.de> <20181209120102.GB4878@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007d03ac057c9a94a3" X-Trace: blaine.gmane.org 1544378165 5043 195.159.176.226 (9 Dec 2018 17:56:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 17:56:05 +0000 (UTC) Cc: 33670@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 18:56:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3JA-0001B9-Uy for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 18:56:01 +0100 Original-Received: from localhost ([::1]:56170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW3LH-0000ii-BZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 12:58:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW3LB-0000d0-OC for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 12:58:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW3L8-0001L8-BB for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 12:58:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35958) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gW3L8-0001J8-2n for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 12:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gW3L7-0006KM-Uu for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 12:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chris Hecker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Dec 2018 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33670 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33670-submit@debbugs.gnu.org id=B33670.154437825124277 (code B ref 33670); Sun, 09 Dec 2018 17:58:01 +0000 Original-Received: (at 33670) by debbugs.gnu.org; 9 Dec 2018 17:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:40216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3Kc-0006JV-Q2 for submit@debbugs.gnu.org; Sun, 09 Dec 2018 12:57:31 -0500 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:44838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3KZ-0006JF-Gr for 33670@debbugs.gnu.org; Sun, 09 Dec 2018 12:57:28 -0500 Original-Received: by mail-ed1-f51.google.com with SMTP id y56so7588525edd.11 for <33670@debbugs.gnu.org>; Sun, 09 Dec 2018 09:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d6-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pnx0orInPiIV1K5vpVhjgIo3dc6ejDTyhxXhsAqUZwY=; b=c1zCgwLOgd6gFWu0y8u+0bvFS3GK4fSYtaASbwGJFJs44Y8403rJ19iCeKUVHkfLsj /HfjvUhMgjaLMJAs6EGA3g5UsBR0ADsOVDov/JpZzR+tbQCLdn6hwjAIwfDFZPlfdzLs MZ6J2R0WnWbEMUN4nun08wOpOF4ZdI+RXDHZuu5ljK+LTakC2Zj5O3RRiV/WeQdy7AVC b83LhjsyhAFKbFqgGUQaYRXmUFCaVOIcl97P9hr9r1W3fLCZLkx36fTZdti2Fuf2vDHO u1AkrDHOzVU+tMHZemq5JHFO4fjn8z3jp5WxmnWjrFZx8QmOrFe54zyogYY8aeumOy1G a9vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pnx0orInPiIV1K5vpVhjgIo3dc6ejDTyhxXhsAqUZwY=; b=VsWbAZipW62mIoijAaRZuW3Mq4hlHXlXXfiXPAf67YD/J/fZIPmcUR/KMzl1gKTE20 +uTlWwfGT3oMxaSOGskrToHAG1OcG428TjfTly4EPPxUpUZhK4C6Z42pXdWJdM/vNua+ 3OEQv7X20Om2+U7uBMebcmoKzon3LGLAeaF5yIwCUlSE3ewr0Xb0adnDnXqlp6SLuOXj jHmUMw6zqPshNE0aVIAje7oFIS+uSVOSCm8rr1VyIbvJPTkZRbsWJZn4proYez95Lcqh F+79J5FfpkWvZFT4jU3DQItwF/GbO40eUqHzWI1ZquxYrY3cOuAUQ9lMCW0vYU7pGxhI 1DjQ== X-Gm-Message-State: AA+aEWbBWqr/cXn9JA4cFYcIUZNPBuNcx1N+ENWCw3SbWZeWpRWdjYrC ILS2ngCHX4rKic16+u1e2QRBfGoLPkUXZrMavGl2xw== X-Google-Smtp-Source: AFSGD/W6ZTSsaTH8gkOALqT9zF2KWY/CxXrUw/PA4qJ7/7Bdcoebp6j6Aj809Vki+0TO3F0hcU2GPbFQJABBgAqfVC8= X-Received: by 2002:a17:906:38e:: with SMTP id b14-v6mr6974047eja.209.1544378241574; Sun, 09 Dec 2018 09:57:21 -0800 (PST) In-Reply-To: <20181209120102.GB4878@ACM> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153268 Archived-At: --0000000000007d03ac057c9a94a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think I can send it to you privately, I=E2=80=99ll mail you off the bug l= ist later today. Chris On Sun, Dec 9, 2018 at 04:06 Alan Mackenzie wrote: > Hello, Chris. > > On Sat, Dec 08, 2018 at 13:31:42 -0800, Chris Hecker wrote: > > It wasn=E2=80=99t a string, it was a single line function call. Very s= imple > code. > > > Like: > > > Foo(); > > Ah. That's worrying. The cause of the slowdown will not be found in > that single line of code, rather in its context. > > The way CC Mode works is, at each buffer change, a region around the > change where side effects might propagate is calculated. This region is > then checked for any such side effects. I'm guessing here, but it might > well be that the region in this case has been extended far more than is > necessary. > > Is there any way you could get a copy of the file to me, specifying a > line which shows the problem? It's practically impossible to debug > otherwise. > > Thanks! > > > Chris > > -- > Alan Mackenzie (Nuremberg, Germany). > --0000000000007d03ac057c9a94a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think I can send it to you privately, I=E2=80=99ll= mail you off the bug list later today.

Chris


On Sun, Dec 9, 2018 at 04:06 Alan Ma= ckenzie <acm@muc.de> wrote:
Hello, Chris.

On Sat, Dec 08, 2018 at 13:31:42 -0800, Chris Hecker wrote:
> It wasn=E2=80=99t a string, it was a single line function call.=C2=A0 = Very simple code.

> Like:

>=C2=A0 =C2=A0 Foo();

Ah.=C2=A0 That's worrying.=C2=A0 The cause of the slowdown will not be = found in
that single line of code, rather in its context.

The way CC Mode works is, at each buffer change, a region around the
change where side effects might propagate is calculated.=C2=A0 This region = is
then checked for any such side effects.=C2=A0 I'm guessing here, but it= might
well be that the region in this case has been extended far more than is
necessary.

Is there any way you could get a copy of the file to me, specifying a
line which shows the problem?=C2=A0 It's practically impossible to debu= g
otherwise.

Thanks!

> Chris

--
Alan Mackenzie (Nuremberg, Germany).
--0000000000007d03ac057c9a94a3--