[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhelv6-beta-list] My first experiences with RHEL6 beta



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 dsv03-pv1 ~]$ echo $LANG
en_GB.UTF-8
[john 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 dsv03-pv1 ~]$ export LANG=C
[john 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 ns ~]# LANG=C; time grep -q '^....' /usr/share/dict/words

real    0m0.003s
user    0m0.001s
sys     0m0.002s
[root ns ~]# LANG=en_AU.UTF-8; time grep -q '^....' /usr/share/dict/words

real    0m0.004s
user    0m0.001s
sys     0m0.003s
[root ns ~]#


--

Cheers
John

-- spambait
1aaaaaaa coco merseine nu  Z1aaaaaaa 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:-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]