Subject: bug#40733: 28.0.50; Emacs locks up on paste (yank) of unicode characters

From: Eli Zaretskii <[email-masked]>
Date: Wed, 29 Apr 2020 15:16:12 +0300

> From: Will Bush <[email-masked]>
> Date: Wed, 29 Apr 2020 06:59:42 -0500
> Cc: Robert Pluim <[email-masked]>, "Basil L. Contovounesios" <[email-masked]>, [email-masked], 
> 	James Cloos <[email-masked]>
> 
>  It would be good to know what happens in Emacs during those 88
>  seconds.  Please try using "M-x profiler" to find out.
> 
> Here's what I get with `M-x profiler-start`, using the default cpu sampling,
> `C-y` the character into a scratch buffer, wait for the character to show up,
> `M-x profiler-stop`, and start `M-x profiler-report`:

You shouldn't invoke profiler-stop, it affects the profile.  Just
profiler-start, do what you want to profile, then profiler-report.

>From what you posted, it looks like GC is a major player, but it's
hard to be sure (and 88 sec is a lot of time for a GC).  Please show
the profile collected as suggested above.

Thanks.