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

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

Re: Allow prefix arg for ido-find-*file* (maybe)


From: Kim F. Storm
Subject: Re: Allow prefix arg for ido-find-*file* (maybe)
Date: Sun, 26 Sep 2004 23:29:57 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

"Sean O'Rourke" <address@hidden> writes:

> At Sat, 25 Sep 2004 02:13:01 +0200,
> address@hidden (Kim F. Storm) wrote:
>> It only works on systems (e.g GNU/Linux) where file-attributes returns
>> a sensible size for directories.  So it probably fails on Windoze...
>
> Thanks for looking into this.  It looks like it does the trick, though
> the default threshhold is way too high to have an effect -- something
> like 4096 or 8192 might be better.  

I chose the default limit so it doesn't get activated too often.
Specifically, it doesn't get activated in the emacs/lisp directory.

And I don't see any slow-down for the current limit on my laptop.

But it's a defcustom, so change it to suit your own needs.

>                                     file-attributes seems sensical on
> Darwin as well, though I'd rather specify a (possibly rough) number of
> files, and
>
>     (length (directory-files DIR nil nil t))
>
> isn't that slow -- it's all the filtering and fontification done by
> ido that slows things down.  

For a local file system that is true -- but I have some directories
which have +25000 files, and in those your code takes a few seconds
to execute.

But it would make sense to use the above as an alternative or
alternative for e.g. windoze...  I'll think about it!

>                              FWIW, on Darwin the second element of
> file-attributes seems to be the number of files.  Weird.

Could you debug that?

-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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