Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 19598

Summary: suggested enhancement of rc-scripts and policy suggestion for init.d entries
Product: Gentoo Linux Reporter: leon j. breedt <gentoo-bugs>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED REMIND    
Severity: enhancement CC: gentoobugzilla, m.debruijne, mr_bones_, pebenito, pfeifer, releng, seemant
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: modified version of rc-scripts

Description leon j. breedt 2003-04-19 05:30:12 UTC
GNU grep and gawk perform significantly faster when the locale is set to C as
opposed to a Unicode locale. This is documented at:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82032

Forcing this in all bootup scripts makes a noticable difference in startup speed. 
I've made a modified version of rc-scripts 1.4.3.5 with this change applied, and
I will attach it for your reference.

If you wish to test it, I would suggest making the same changes to all scripts
in /etc/runlevels/boot and /etc/runlevels/default to get the full effect.

If the same improved results are observed, I would think it to make sense to
suggest that maintainers do the same in /etc/init.d scripts.

Reproducible: Always
Steps to Reproduce:
Comment 1 leon j. breedt 2003-04-19 05:45:14 UTC
Created attachment 10861 [details]
modified version of rc-scripts
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-21 15:50:31 UTC
Ugly.  Can rather just add a 'export LC_ALL="C"' to /sbin/functions.sh.
Comment 3 leon j. breedt 2003-04-21 16:21:31 UTC
also unnecessary, it seems. Gentoo doesn't set a UTF locale, so making this change is pointless unless at some time in the future it does (not something i'd recommend, breaks badly w.r.t widely expected grep behaviour, judging from Red Hat Bugzilla), since the default locale is C.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 13:07:01 UTC
Right, marking this as a reminder.