On Fri, Feb 23, 2007 at 02:19:12PM +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).
>
> I'm not sure if those find arguments are portable enough, can
> someone recheck if it works on BSD and other Unices?
>
According to man pages, the maxdepth, perm and type options are
available on FreeBSD[1] and Solaris[2] at least.
Regards,
Frederik
[1] http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=find
[2] http://ussg.iu.edu/usail/man/solaris/find.1.html
Received on Fri Feb 23 2007 - 14:27:12 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:38:08 UTC