[rhelv6-beta-list] My first experiences with RHEL6 beta
John Summerfield
debian at herakles.homelinux.org
Sun Jun 20 02:06:45 UTC 2010
John McNulty wrote:
>
>
> But sometimes it's not the easiest thing to trust upstream to do what's
> right when bugs that affect all distros go unfixed for years. e.g.
>
> [john at dsv03-pv1 ~]$ echo $LANG
> en_GB.UTF-8
> [john at dsv03-pv1 ~]$ time grep '^....' /usr/share/dict/words >/dev/null
>
> real 9m29.275s
> user 9m29.055s
> sys 0m0.043s
>
Interesting...
> And it pegs my CPU at 100%. Compare this to...
>
> [john at dsv03-pv1 ~]$ export LANG=C
> [john at dsv03-pv1 ~]$ time grep '^....' /usr/share/dict/words >/dev/null
>
> real 0m0.116s
> user 0m0.107s
> sys 0m0.006s
>
>
> This little gem has been hanging around since 2005 (
> http://savannah.gnu.org/bugs/?14472)
>
> John
>
Is different here:
[root at ns ~]# LANG=C; time grep -q '^....' /usr/share/dict/words
real 0m0.003s
user 0m0.001s
sys 0m0.002s
[root at ns ~]# LANG=en_AU.UTF-8; time grep -q '^....' /usr/share/dict/words
real 0m0.004s
user 0m0.001s
sys 0m0.003s
[root at ns ~]#
--
Cheers
John
-- spambait
1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
More information about the rhelv6-beta-list
mailing list