[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What makes set-window-buffer slow?
From: |
Clément Pit--Claudel |
Subject: |
Re: What makes set-window-buffer slow? |
Date: |
Thu, 23 Jun 2016 17:23:54 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
On 2016-06-23 15:11, Eli Zaretskii wrote:
> Instead of hypothesizing, I suggest to profile your code with
> profiler.el. If indeed redisplay is taking the time, you should see
> that in the profile.
The profile doesn't show that, unfortunately; in fact, we spent a significant
amount of time trying to understand what was taking all that time by looking at
the profile, but nothing in there was taking more than 30% of the time, and
even optimizing away a function that according to the profile took 28% of the
time didn't yield a measurable runtime difference.
Commenting out the call to set-window-buffer (or predicating it on the window
not already displaying the buffer), on the other hand, does yield a 95%
performance gain. set-window-buffer does not appear in the profile;
redisplay_internal does appear, but it only is credited with 30% of the
execution time.
I wonder what might explain these results...
Clément.
signature.asc
Description: OpenPGP digital signature
- What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/23
- Re: What makes set-window-buffer slow?, Andreas Schwab, 2016/06/23
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/23
- Re: What makes set-window-buffer slow?, Alan Mackenzie, 2016/06/23
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/23
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/23
- Re: What makes set-window-buffer slow?,
Clément Pit--Claudel <=
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/24
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/24
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/24
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/24
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/24
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/24
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/24
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/25
- Re: What makes set-window-buffer slow?, Clément Pit--Claudel, 2016/06/25
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/25