From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: How speedup find-dired?
Date: Tue, 18 Jan 2011 12:08:07 +0200 [thread overview]
Message-ID: <ih3oq5$d5i$1@dough.gmane.org> (raw)
In-Reply-To: <E1Pey0T-0005fZ-Vz@fencepost.gnu.org>
On 18.01.2011 0:57, Eli Zaretskii wrote:
>> From: Oleksandr Gavenko<gavenkoa@gmail.com>
>> Date: Mon, 17 Jan 2011 23:59:31 +0200
>>
>> I use Cygwin/Windows combination.
>>
>> Default value of 'find-ls-option' is:
>>
>> ("-ls" . "-gilsb")
>>
>> or which in my case:
>>
>> ("-exec ls -ld {} \\;" . "-ld")
>>
>> Invoking ls for every file is too slow (~= 3 file per sec).
>
> I lost you right here: doesn't `("-ls" . "-gilsb")' work for you?
> That should cause Emacs to invoke "find ... -ls", instead of invoking
> a separate `ls' program for each file.
>
Thanks in replay, and sorry for a lot of words ((
I wrote that I try "-ls", but see output:
$ find . -ls
562949953421501 2 -rw-r--r-- 1 user Отсутствует
1539 июн 16 2010 ./.emacs
14355223812252264 24 -rw-r--r-- 1 user Отсутствует
47724 янв 18 09:46 ./.emacs-my
844424930132155 2 -rw-r--r-- 1 user Отсутствует
828 янв 18 09:44 ./.emacs-post
562949953421500 1 -rw-r--r-- 1 user Отсутствует
209 янв 17 15:07 ./.emacs-pre
As I wrote there are many useless data, I need only file names!
There so many useless data that file names truncated to next line!
As wrote it is not easy possible to force parse simple find output by
dired, like
with 'find . -print'.
Now I stop on GNU find:
(setq find-ls-option '("-printf '-rw-rw-rw- 0 %AY-%Am-%Ad %AH:%AM %p\n'"
. ""))
This format parsed by 'dired-insert-set-properties' and output aligned
by column.
> Also, if your `find' and `ls' ports are slow, I would look for faster
> ports rather than for "portable" tweaks of Emacs. Tweaks that seek to
> fix platform-specific bugs or misfeatures can never be portable, in my
> experience.
>
I use Cygwin and think that it provide very good packages!
It is allow me use native Emacs much easy as on Linux.
ls (GNU coreutils) 8.5
find (GNU findutils) 4.5.9
I happy by making dired platform independent as solution based only on
Emacs primitives.
This also allow me to make dired look and feel common to all platform
and don't care about 'ls' flavor.
I expect Emacs make things like listening files/dirs,
searching for files and for file's content built in. But it is not true.
Why maintain 'directory-listing-before-filename-regexp' like regexp
(about 1600 chars
length string) and many 'if' statement instead having internal 'find'
analog?
My point is when I promote Emacs to my colleagues I must say that they need
find/grep/ls. Some of this people don't know what is this at all.
They say that their favorite IDE make this out of the box and
surprised that Emacs can not just handle such simple things.
>> I try set
>>
>> (setq find-ls-option '("-print" . ""))
>
> Did you try
>
> (setq find-ls-option '("-ls" . "-gilsb"))
>
> ? If you did, what happened?
>
See upper.
next prev parent reply other threads:[~2011-01-18 10:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-17 21:59 How speedup find-dired? Oleksandr Gavenko
2011-01-17 22:57 ` Eli Zaretskii
2011-01-18 10:08 ` Oleksandr Gavenko [this message]
2011-01-18 15:17 ` Eli Zaretskii
2011-01-18 15:35 ` Oleksandr Gavenko
2011-01-18 15:57 ` Drew Adams
2011-01-18 16:32 ` Le Wang
2011-01-18 17:05 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ih3oq5$d5i$1@dough.gmane.org' \
--to=gavenko@bifit.com.ua \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.