Re: [wmii] snap: 20060313, proglist() spike

From: Suraj N. Kurapati <skurapat_AT_ucsc.edu>
Date: Mon, 13 Mar 2006 12:23:34 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Anselm R. Garbe wrote:
> Hi there,
>
> a new snap can be fetched from:
>
> http://wmii.de/snaps/wmii-20060313.tar.gz

I've noticed that the proglist() function inside wmiirc causes a big
spike in my system's load every time I start up wmii.

I'd like to offer an alternative implementation, although I don't
know how this would impact portability:

echo "$PATH" | tr ':' '\n' | grep -v '^$' | sort -u | while read
dir; do find "$dir" -perm -u+x -type f -print | sed 's,^.*/,,'; done
| sort -u

Best regards.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD4DBQFEFdTGmV9O7RYnKMcRAnB6AJ0dYuuSuwwrMwvu/uqa7bMvIpbErQCY+JWw
ZgyvDI/86KUn2BpTC+vIBA==
=wrob
-----END PGP SIGNATURE-----
Received on Mon Mar 13 2006 - 21:43:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:08 UTC