> Ihor Radchenko writes: > >> Gerd Möllmann writes: >>>>>> I attach a profiler output, and a HTML file which causes a >>>>>> similar >>>>>> slowdown when opening from eww. >>> >>> I'm afraid I don't see much in the profile. Only thing is that >>> that >>> redisplay_internal isn't called often. Which makes it even >>> weirder that >>> glyph matrix enlargement should play a role. >> >> Looking into reverse call tree (B), I see that >> >> 1874 33% + set-window-configuration >> >> takes 1/3 of CPU cycles. Looking into its source, it does deal >> with >> glyph matrices. So, it is the suspect, judging from the >> submitted >> profiler report. > > Thanks, indeed. > > Which I also find weird. Why is that done in the first place? > Anyway, > that not leading to redisplays, how can adding a memset or > for-loop > settign glyph::frame when adjusting matrices produce a 5x > slowdown, > IIUC? I'm absolutely flabbergasted. That all doesn't add up. > > Maybe comparing a before/after profile could show something.