bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#122: 23.0.60; Slowdown in directory scanning over time.


From: Len Trigg
Subject: bug#122: 23.0.60; Slowdown in directory scanning over time.
Date: Fri, 12 Sep 2008 10:35:59 +1200
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Thu, 11 Sep 2008 13:08:07 -0400,
Richard M. Stallman wrote:
> 
>     The calls seem to be in a fairly even balance of mixture of
>     Fget_buffer and Fgarbage_collect.  Why creating a list of files in a
>     directory should be calling get_buffer is beyond me.
> 
> The backtrace shows why.  It is making a new code-conversion buffer.

Yes, but as an emacs user (rather than programmer), I think of buffers
as being fairly heavyweight things (after all, they contain all the
text I'm editing, and a typical user probably only has a few dozen
open), compared to calling some kind of straight string conversion
function.  Perhaps that is an invalid assumption and buffers are
lightweight.

> There must be a bug in the logic that decides whether to make a new
> code-conversion buffer, so that it makes too many of them.

It seems this is likely to be the problem.  This morning there are 225
code-conversion-work buffers hanging around, and my directory listing
takes 11 seconds.


Cheers,
Len.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]