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:
Created attachment 10861 [details] modified version of rc-scripts
Ugly. Can rather just add a 'export LC_ALL="C"' to /sbin/functions.sh.
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.
Right, marking this as a reminder.