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: Fri, 12 Aug 2022 15:52:09 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: acm@muc.de,  emacs-devel@gnu.org
> Date: Fri, 12 Aug 2022 14:44:57 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Lars, can you post the file with which you see the hang?  I suspect we
> > are not using the same contents.
> 
> It's with this recipe:
> 
> > > 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.
> 
> And then `M->' -- this will hang Emacs (until you hit `C-g', so it's not
> a "hard" hang).

It doesn't hang here, even though my Emacs is unoptimized.  It takes
maybe 10 sec or so.




reply via email to

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