Re: grep -r speed fc2 vs. rh 6.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01:13 19 Dec 2004, Gene Smith <gds@xxxxxxxxxxxxx> wrote:
| I have the same huge source tree on fc2 500Mhz Athlon with IDE drive and 
| on a old hp vectra 200Mhz with Pentium pro and scsi drive running rh 6.1 
| with ext2. A "grep -r" for the same string on the vectra takes about 
| about a third as long to return results as compared to the somewhat 
| "faster" Athlon/IDE/ext3 system running fc2. However, building the tree 
| (and most everything else) takes longer on the vectra by a noticeable 
| amount.
| 
| Both are running grep from a kde "konsole" in their respective kde 
| environments. Is it possible that fc2 gives grep and possibly similar 
| commands a lower priority than rh 6.1 gives? Or is it the scsi drives or 
| ext2 (on rh 6.1) vs IDE and ext3 I am using on fc2?

This is almost certainly because fc2 uses UTF-8 by default.
Try this:

	env LC_ALL=C grep -r .......

versus you original

	grep -r .......

UTF-8 is more expensive to parse.
Try this for more info:

	env | grep LC
	man locale

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

NOTWORK: n. A network when it is acting flaky. Origin (?) IBM.
        - Hackers' Dictionary


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux