https://bugzilla.novell.com/show_bug.cgi?id=308698
User lyeoh@inter-touch.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=308698#c16
Lincoln Yeoh changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lyeoh@inter-touch.com
--- Comment #16 from Lincoln Yeoh 2008-02-18 04:43:03 MST ---
Maybe it doesn't cause a crash, but it's still very bad if you had being
relying on grep not to suddenly be slower by an order of magnitude (20x),
especially on a new machine that's 2x faster, but overall 10X slower with grep
"Vista Edition" installed.
20 times slower is terrible.
e.g.
grep = grep-2.5.2-28
grep251 = grep-2.5.1a-40 from a 10.2 box, which isn't fast either - in fact
it's quite slow too in some cases.
time grep251 -E "(duosdwrwr|asdsadd)" messages-20080218
real 0m2.145s
user 0m1.920s
sys 0m0.224s
time grep -E "(duosdwrwr|asdsadd)" messages-20080218
real 0m44.081s
user 0m43.819s
sys 0m0.256s
time grep251 -E "(duosdwrwr|asdsadd)" messages-20080218
real 0m2.132s
user 0m1.868s
sys 0m0.264s
time grep251 -E "asdadd|trerwer" messages-20080218
real 0m49.606s
user 0m48.527s
sys 0m0.356s
Note that for the following dual pattern query grep251 is also very slow.
time grep -E "asdadd|trerwer" messages-20080218
real 0m50.177s
user 0m49.939s
sys 0m0.232s
ime grep251 -E "asdadd" messages-20080218
real 0m0.759s
user 0m0.492s
sys 0m0.224s
But 251 is not too bad one pattern at a time, while grep-2.5.2-28 is bad.
time grep251 -E "trerwer" messages-20080218
real 0m0.686s
user 0m0.460s
sys 0m0.228s
time grep -E "trerwer" messages-20080218
real 0m43.013s
user 0m42.719s
sys 0m0.204s
time grep -E "asdadd" messages-20080218
real 0m42.810s
user 0m42.515s
sys 0m0.272s
export LC_ALL="C"
time grep251 -E "(duosdwrwr|asdsadd)" messages-20080218
real 0m1.535s
user 0m1.280s
sys 0m0.256s
time grep -E "(duosdwrwr|asdsadd)" messages-20080218
real 0m1.568s
user 0m1.312s
sys 0m0.248s
time grep -E "asdadd|trerwer" messages-20080218
real 0m2.152s
user 0m1.968s
sys 0m0.180s
time grep251 -E "asdadd|trerwer" messages-20080218
real 0m2.154s
user 0m1.840s
sys 0m0.312s
Must we start turning locale off by default?
Maybe getting locale right is not easy, but 40 seconds for an foo|bar search?
why not just 2 x longer than a single pattern search?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.