http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=69900
Basically check out this sample session. ==================================== [EMAIL PROTECTED] root]# echo $LANG en_US.UTF-8
[EMAIL PROTECTED] root]# time grep '^' /var/log/messages > /dev/null real 0m3.062s user 0m2.780s sys 0m0.080s
[EMAIL PROTECTED] root]# export LANG=en_US
[EMAIL PROTECTED] root]# echo $LANG en_US
[EMAIL PROTECTED] root]# time grep '^' /var/log/messages > /dev/null real 0m0.031s user 0m0.030s sys 0m0.000s ===================================
Basically a lot of text related programs are slower by orders of magnitude because Red Hat Linux default to UTF-8 processing for its work. And UTF compliant programs like grep spend a lot of time looking for multibyte characters(as in UTF) where mostly there arent any. I am guessing here, but maybe updatedb can run faster too. Havent tested it yet.
If you are unlikely to work with UTF-8 based text(i guess on most servers as opposed to desktops which have a lot of UI dependent on it), you can change the value of LANG in /etc/sysconfig/i18n and speed up many applications on the machine.
- Sandip
-- Sandip Bhattacharya sandip (at) puroga.com Puroga Technologies Pvt. Ltd. Work: http://www.puroga.com Home: http://www.sandipb.net
GPG: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3
------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
