From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tadeus Prastowo Newsgroups: gmane.emacs.devel Subject: Re: Processing speed in large C++ raw strings. Date: Tue, 30 Apr 2019 16:44:45 +0200 Message-ID: References: <20190425183615.GB19807@ACM> <20190427113734.GA4822@ACM> <20190427172949.GC4822@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19687"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 30 16:45:43 2019 Return-path: Envelope-to: ged-emacs-devel@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 1hLU0s-0004xC-Pm for ged-emacs-devel@m.gmane.org; Tue, 30 Apr 2019 16:45:42 +0200 Original-Received: from localhost ([127.0.0.1]:48099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLU0r-00087B-Qw for ged-emacs-devel@m.gmane.org; Tue, 30 Apr 2019 10:45:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLU0D-000869-AZ for emacs-devel@gnu.org; Tue, 30 Apr 2019 10:45:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLU0B-0000bm-4u for emacs-devel@gnu.org; Tue, 30 Apr 2019 10:45:01 -0400 Original-Received: from mail-it1-x142.google.com ([2607:f8b0:4864:20::142]:52774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLU0A-0000Xr-Gp for emacs-devel@gnu.org; Tue, 30 Apr 2019 10:44:59 -0400 Original-Received: by mail-it1-x142.google.com with SMTP id x132so5058314itf.2 for ; Tue, 30 Apr 2019 07:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unitn.it; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oQ25dZbTehOvIlXgYV51mmz8Mof91JDgYpMhirA2aCI=; b=rpwX7LP19CHYkLl8nNsRLAZBwlqg54cQ4EgWnh395YqN8mbZbexB6Qf+t91j/4bX55 vJzMECwYTOi07Lw0cIEIXucbPiDK/IIPoa/r2Z+lQE4iDlwDpG8SliMqoPeC+zKgxj46 jDvr9AIm3Brt2Sz9tjUn3EINP9efWFW24BR3g= 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=oQ25dZbTehOvIlXgYV51mmz8Mof91JDgYpMhirA2aCI=; b=gZmRbCSNxo/yHFDQOaO1QggAwfKZ7bN7betyyqm0Rz8PUjdgRmOhYfxkGHkD3JodR5 eUKqRyEE+cAQbjaETV8d3Txs/eDRqw0O9LA5pPjlONR7I9n8engAx9JQ41jFezEpgI0Q fc6LSGmBGGxlpz4fxTtQ4g04M4qQzth8iBKpnjlnDAeYaAqjQNAvHs0pY/mHZ37ZsdAq KcgmFNjg1nigDB8LudcL5nU1hbjJcpldP6eufFtAHGXBfMVUxObE8FQUTyWXdZKxHyPN eEfLkb2aujLb3K0g3pql5cmlN1Re39mrwtj2EdQ2YwfMcJpM65v1Py2TfW9s5JwlLdra k//A== X-Gm-Message-State: APjAAAUFZmIBtGcPhqXsLibsYl6/aeHdWyoO7EGv/7klzlz3Wf7WAmro x6bo7lbcvC/UpvRXEx27nwZfBCflBDML/DjpBanTubuxoQ== X-Google-Smtp-Source: APXvYqygDheRpIBAGQC9388V5XYuFaYk3rBK4mE/7DpFfAib8hjLcJiePY6lRHEOkiYdeC1hYpv/xtA0qPw3Zz0rTgk= X-Received: by 2002:a02:1d07:: with SMTP id 7mr1144671jaj.122.1556635496443; Tue, 30 Apr 2019 07:44:56 -0700 (PDT) In-Reply-To: <20190427172949.GC4822@ACM> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::142 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236051 Archived-At: Hi Alan, On Sat, Apr 27, 2019 at 7:29 PM Alan Mackenzie wrote: > > Hello again, Tadeus. > > On Sat, Apr 27, 2019 at 17:35:16 +0200, Tadeus Prastowo wrote: > > Hi Alan, > > > On Sat, Apr 27, 2019 at 1:37 PM Alan Mackenzie wrote: > > > The following patch should speed up the scrolling operation markedly. > > > It does not become instantaneous, but takes a fraction of a second, > > > compared with the several seconds it has taken up to now. Would you > > > please try it out. > > > I apply the following patch to master at commit > > 8dc00b2f1e6523c634df3e24379afbe712a32b27, and I confirm that the > > following patch works to solve not only the buffer scrolling > > sluggishness but also the template parameter editing sluggishness, > > including the one that I sent to Stefan earlier today. Thank you very > > much, Alan, I really appreciate it. Three lines of a diff to solve my > > two-year old sluggishness problem. > > Thanks indeed! Thanks also for such a rapid reply. > > I've just committed the patch to all the usual places (including the > Emacs master branch). So I think the bug is now fixed. I am currently experiencing some sluggishness in the following way using `emacs -Q' that locally visits the file at http://git.savannah.nongnu.org/cgit/tice.git/plain/internals/v1/v1_internals_program.hpp?id=6ed1f0b6d977eccf91386ead562e10e6801e95aa: M-g g 2874 C-u 17 M-f M-DEL remaining (this should be a bit sluggish) M-d M-d M-DEL source_node_ids (this is sluggish) Would you kindly see if you experience the same thing, please? If so, would it be easy to fix? Thank you. > > > diff -r 1940f96b9799 cc-engine.el > > > --- a/cc-engine.el Fri Apr 26 01:01:07 2019 +0000 > > > +++ b/cc-engine.el Sat Apr 27 11:30:06 2019 +0000 > > > @@ -5539,7 +5539,9 @@ > > > (prog1 (looking-at "\\s(") > > > (forward-char)))) > > > (backward-char) > > > - (if (c-forward-<>-arglist nil) ; Should always work. > > > + (if (let ((c-parse-and-markup-<>-arglists t) > > > + (c-restricted-<>-arglists t)) > > > + (c-forward-<>-arglist nil)) ; Should always work. > > > (when (> (point) to) > > > (setq bound-<> (point))) > > > (forward-char))) > -- > Alan Mackenzie (Nuremberg, Germany). -- Best regards, Tadeus