Walking a directory tree in Emacs using the cookbook recipe (http://www.emacswiki.org/emacs/ElispCookbook#toc59), or the solution at Walk up the directory tree is quite slow.
Could one use Unix's find
instead, via shell-command
or call-process
, and perform a funcall
on the returned list?
Is there any cons to that idea (perhaps too much memory consumption for large trees?), and what would be the idiomatic way to do that in elisp, ie calling find
with some given arguments and mapping a funcall on the returned value?
One possible benefit I can see is that the shell process could be launched asynchronously, without Emacs stopping at all when the process is started.