[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What makes set-window-buffer slow?
From: |
Eli Zaretskii |
Subject: |
Re: What makes set-window-buffer slow? |
Date: |
Fri, 24 Jun 2016 09:54:53 +0300 |
> From: Clément Pit--Claudel <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> Date: Thu, 23 Jun 2016 17:23:54 -0400
>
> 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...
Any hope of seeing the profile, fully expanded?
- 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, 2016/06/23
- Re: What makes set-window-buffer slow?,
Eli Zaretskii <=
- 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
- Re: What makes set-window-buffer slow?, Eli Zaretskii, 2016/06/25