Hello, On Thu 03 Oct 2024 at 06:16pm +03, Eli Zaretskii wrote: >> From: Sean Whitton >> Cc: 72826@debbugs.gnu.org, Juri Linkov , João Távora >> >> Date: Thu, 03 Oct 2024 22:28:49 +0800 >> >> 38958 93% - icomplete-post-command-hook >> 38958 93% - icomplete-exhibit >> 38819 93% - icomplete-completions >> 38749 92% string-width >> 43 0% + icomplete--sorted-completions >> 27 0% buffer-string >> 139 0% + sit-for >> >> I think the culprit is probably the evaulation of >> (string-width (buffer-string)) in icomplete-completions. > > Does it help to disable auto-composition-mode? It looks like that slightly improves the situation, but does not fix it. It's still extremely slow. I think I have a fix, which I've attached. I'll test it locally for a couple of days before installing it. -- Sean Whitton