[Bug 338995] New: "grep -v" performace bad with LC_CTYPE=de_DE.UTF-8
https://bugzilla.novell.com/show_bug.cgi?id=338995 Summary: "grep -v" performace bad with LC_CTYPE=de_DE.UTF-8 Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- grep "-v" performace completely sucks with utf8 locale: on a 2 GHz core2duo (T7200 64 bit system), for a 410 kByte ascii file: LC_CTYPE=de_DE.UTF-8 time grep -v GP nmea-2007.11.04_19.12.16.log > /dev/null 0:06.97 real, 6.92 user, 0.00 sys, 99% cpu but: LC_CTYPE=de_DE time grep -v GP nmea-2007.11.04_19.12.16.log > /dev/null 0:00.35 real, 0.00 user, 0.00 sys, 1% cpu on an AMD1200 this grep takes more than 21 secs ! on SUSE 10.2 this "grep -v " was fast even with utf8 locale. note: if the grep search string contains a utf8 character, grep -v works fast LC_CTYPE=de_DE.UTF-8 time grep -v µ nmea-2007.11.04_19.12.16.log > /dev/null 0:00.05 real, 0.05 user, 0.00 sys, 100% cpu -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=338995
Mark Gordon
https://bugzilla.novell.com/show_bug.cgi?id=338995#c1
--- Comment #1 from Harald Koenig
grep "-v" performace completely sucks with utf8 locale:
it's not only the "-v" option: harald > LC_CTYPE=de_DE.utf-8 time zgrep l2kurz.pdf /var/lib/pin/ARCHIVES.gz Command exited with non-zero status 1 0:23.75 real, 25.50 user, 0.27 sys, 108% cpu harald > LC_CTYPE=de_DE time zgrep l2kurz.pdf /var/lib/pin/ARCHIVES.gz Command exited with non-zero status 1 0:04.87 real, 4.36 user, 0.20 sys, 93% cpu on a 2 GHz intel T7200 cpu (IBM T60, 64 bit 10.3). -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=338995
User bj@sernet.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=338995#c2
Bjoern Jacke
participants (1)
-
bugzilla_noreply@novell.com