Re: [dwm] dmenu-2.4

From: Frederik Deweerdt <deweerdt_AT_free.fr>
Date: Fri, 23 Feb 2007 13:42:24 +0000

On Fri, Feb 23, 2007 at 02:34:05PM +0100, Anselm R. Garbe wrote:
> On Fri, Feb 23, 2007 at 01:11:03PM +0000, Frederik Deweerdt wrote:
> > On Fri, Feb 23, 2007 at 10:50:16AM +0100, Anselm R. Garbe wrote:
> > > I did some benchmarks measuring the difference between
> > > dmenu_path [...]
> > Hi,
> >
> > On my system, this:
> > for i in `echo $PATH | tr : ' '`; do find $i -maxdepth 1 -perm -100 -type f 2> /dev/null ; done | sort -u
> > performs slightly better (~10%) than the ls | awk based approach. I made
> > the measurements without cache (echo 3 > /proc/sys/vm/drop_caches).
>
> One remark, your construct is not equivalent to what dmenu_path
> does, because it does not suppress the directories for me...
>
Interesting, the -type f should get read of them. Does this:
for j in $(time for i in `echo $PATH | tr : ' '`; do find $i -maxdepth 1 -executable -type f 2> /dev/null -print ; done ); do [ -d $j ] && echo $j; done
Returns anything on yout machine? It doesn't in mine.

Regards,
Frederik
Received on Fri Feb 23 2007 - 14:43:38 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:38:09 UTC