Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Count number of occurrences of a list of words in a fileby Tux (Canon) |
on May 09, 2018 at 16:31 UTC ( [id://1214287]=note: print w/replies, xml ) | Need Help?? |
How about this then?
I was more wondering about case sensitiveness I timed that against the original approach. My code (with 8 words): 19 seconds, OP code: 57 seconds. That difference will exponentially grow with the number of words: with 23 words 20 seconds versus 175 seconds. Total text size was 273 Mb. Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|