emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New optimisations for long raw strings in C++ Mode.


From: Eli Zaretskii
Subject: Re: New optimisations for long raw strings in C++ Mode.
Date: Sun, 07 Aug 2022 19:17:50 +0300

> Date: Sun, 7 Aug 2022 16:13:56 +0000
> Cc: emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> > Simplest case to reproduce:
> 
> > M-: (setq long-line-threshold nil)
> 
> > Go to a cc buffer containing:
> 
> > char long_line[] = R"foo(
> 
> > )foo"
> 
> > M-: (insert (make-string 1000000 ?y))
> 
> > on the second line.  This reliably hangs Emacs for me.
> 
> Actually, when I try your recipe with make-string, it hangs for me, too,
> for quite a few minutes.  Alternatively, when I do C-y, the insertion
> takes a little less than a second.

I actually tried the "C-y" recipe, and it hangs for me that way, too.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]