|
|
|
|
|
by kbenson
2124 days ago
|
|
That grep is not doing the same thing as the code, nor necessarily what the exercise requires. By default, grep tests patterns, so it's turning all those entries into individual regular expressions. You want to use fgrep, or the -F flag to make it treat all the source matches as fixes strings. In my simple test, that resulting in grep running in 44% of the prior amount of time it required (still more than python though). |
|