all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Processing speed in large C++ raw strings.
Date: Fri, 26 Apr 2019 22:15:23 -0400	[thread overview]
Message-ID: <jwvy33wjiy4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: CAN-HRFaPsVzNocOdBcUr4xb5ahuAnboaJonczMh3nQcL_DZzdQ@mail.gmail.com

>> I have now optimized CC Mode, such that each such self-insert-command
>> now takes around 0.07s-0.1s.  I used two strategies for this: (i) breaking out
>> of (expensive) fontification routines early, when the region being
>> fontified is nothing but a string; (ii) Not fontifying the entire raw
>> string for a change to only a small part of it.
>
> I have been working with C++ template metaprograms for two years, and
> since quite early, I have experienced CC Mode being very sluggish that
> I often switch back-and-forth between cc-mode and text-mode.

Could you try out the "quick hack patch" I sent in
https://debbugs.gnu.org/35316 ?

It has a few known bugs, so it would require further work to be really
useful, but I'd be interested to know if it helps your use case.

> `emacs -Q' to visit the file locally.  Then, to experience the
> sluggishness, I pressed M-> followed by M-v several times.

FWIW, I don't expect my patch will help this use-case.


        Stefan




  reply	other threads:[~2019-04-27  2:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 18:36 Processing speed in large C++ raw strings Alan Mackenzie
2019-04-26  1:25 ` Dmitry Gutov
2019-04-26 20:15 ` Tadeus Prastowo
2019-04-27  2:15   ` Stefan Monnier [this message]
2019-04-27 10:37     ` Tadeus Prastowo
2019-04-27 11:37   ` Alan Mackenzie
2019-04-27 15:35     ` Tadeus Prastowo
2019-04-27 17:29       ` Alan Mackenzie
2019-04-30 14:44         ` Tadeus Prastowo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy33wjiy4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.