Grep contains a lot of patches so that it is very fast even in UTF-8,
but only in the default case sensitive mode. If you type "grep -i
some_very_large_data" then you'll find that it is approx. a hundred times
slower than if you omit "-i". Example:
$ time grep foobar /usr/lib/locale/locale-archive
$ time grep -i foobar /usr/lib/locale/locale-archive
Note #1: I'm not using Fedora, but applied its patches (grep-2.5.1-52.2) to
grep 2.5.1a and recompiled it on my system and found this behavior there.
Note #2: If I apply the patches from SUSE's grep-2.5.1a-20 instead then it's
fast even in the case insensitive mode.
Note #3: "fgrep -i" is fast on Fedora, too.
Sorry for the dup.
*** This bug has been marked as a duplicate of 194471 ***