From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#35316: 26.2; Emacs lags in c++-mode buffer when editing with iedit-mode on Date: Fri, 17 May 2019 10:01:18 +0000 Message-ID: <20190517100118.GB5011__38286.4702771016$1558088029$gmane$org@ACM> References: <20190516150457.GA639@ACM> <20190516161704.GA527@ACM> <871s0xop2o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="154513"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 35316@debbugs.gnu.org, ccsmile2008@outlook.com To: Amos Bird Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 17 12:13:45 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRZs0-000e6D-M9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 12:13:44 +0200 Original-Received: from localhost ([127.0.0.1]:45680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRZrz-0002MK-7M for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 06:13:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRZmb-0005mF-7R for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 06:08:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRZgg-0005KL-Rv for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 06:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRZgg-0005J2-2D; Fri, 17 May 2019 06:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRZgf-0003On-NG; Fri, 17 May 2019 06:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 17 May 2019 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35316 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 35316-submit@debbugs.gnu.org id=B35316.155808728813027 (code B ref 35316); Fri, 17 May 2019 10:02:01 +0000 Original-Received: (at 35316) by debbugs.gnu.org; 17 May 2019 10:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:57328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRZg7-0003O3-LA for submit@debbugs.gnu.org; Fri, 17 May 2019 06:01:27 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:19697 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hRZg5-0003Ns-Oe for 35316@debbugs.gnu.org; Fri, 17 May 2019 06:01:26 -0400 Original-Received: (qmail 18207 invoked by uid 3782); 17 May 2019 10:01:19 -0000 Original-Received: from acm.muc.de (p4FE15D06.dip0.t-ipconnect.de [79.225.93.6]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 17 May 2019 12:01:18 +0200 Original-Received: (qmail 5571 invoked by uid 1000); 17 May 2019 10:01:18 -0000 Content-Disposition: inline In-Reply-To: <871s0xop2o.fsf@gmail.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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: 209.51.188.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:159439 Archived-At: Hello, Amos. On Fri, May 17, 2019 at 09:19:11 +0800, Amos Bird wrote: > Hello, this patch works as expected. Is there any similar > technique I can apply to undo-tree? After modifying hundreds of > copies using iedit, doing undo/redo freezes for several minutes. Whoa there! Are we still talking about C++ Mode (or one of the other modes in the CC Mode family)? How big is your file? Can you characterise it in any way? For example, does it contain lots of, or big, raw strings? I noticed yesterday on a C++ test file with a very long raw string, that although editing copies of a string segment (using iedit) was fast, undo afterwards was very slow indeed (~1 minute). So, perhaps your problem is the same as mine. Perhaps you have encountered a different problem. It seems I have more work to do on this in any case. So, details, please! > regards, > Amos [ .... ] > -- > Amos Bird > amosbird@gmail.com -- Alan Mackenzie (Nuremberg, Germany).