Fastest possible grep
I'd like to know if there is any tip to make **grep** as fast as possible. I have a rather large base of txt files to search in the quickest possible way. I've made them all lowercase, so that I could get rid of `-i` option. This makes the search much faster.

Also, I've found out that `-P` and `-F` modes are quicker than the default one. I use the former when the search string is not a regular expression (just plain text), the latter if regex is involved.

Does anyone have any experience in speeding up grep? Maybe compile it from scratch with some particular flag (I'm on Linux CentOS), organize the files in a certain fashion or maybe make the search parallel in some way? Any tip is appreciated. Thanks.
Fastest possible grep
===

I'd like to know if there is any tip to make **grep** as fast as possible. I have a rather large base of txt files to search in the quickest possible way. I've made them all lowercase, so that I could get rid of `-i` option. This makes the search much faster.

Also, I've found out that `-P` and `-F` modes are quicker than the default one. I use the former when the search string is not a regular expression (just plain text), the latter if regex is involved.

Does anyone have any experience in speeding up grep? Maybe compile it from scratch with some particular flag (I'm on Linux CentOS), organize the files in a certain fashion or maybe make the search parallel in some way? Any tip is appreciated. Thanks.