Re: [dwm] bold in status text

From: Karl. <kmw1_AT_free.net.nz>
Date: Fri, 25 Aug 2006 11:24:46 +1200

> >Speaking of resources, I wonder how the resource requirements of these
> >two statements compare? They both give the same result. How would I test
> >this?
> >
> >uptime | sed 's/.*: //; s/,//g'
> >cat /proc/loadavg | sed 's/ [0-9]*\/.*//'

I think the big question is why no-one has suggested:
   sed 's/ [0-9]*\/.*//' </proc/loadavg

Running it through Julian's timing script suggests that it's about
twice as fast as any of the other three suggestions.

Karl.
Received on Fri Aug 25 2006 - 01:42:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:29 UTC