in reply to Re^2: how to speed up pattern match between two files
in thread how to speed up pattern match between two files

The line lengths in the words list are short so any differences in performance will be lost in the system noise. So your test can't tell us anything useful and isn't a great match for the OPs problem.

  • Comment on Re^3: how to speed up pattern match between two files

Replies are listed 'Best First'.
Re^4: how to speed up pattern match between two files
by gnujsa (Acolyte) on Sep 17, 2014 at 15:58 UTC

    I've added 3 columns of 3 dictionaries. I've put some random chars at the end to get lines length the same as his files. And, again, short regex (he uses short regex in this part of the code) was as fast as index (and even slightly faster). I don't know why, but the best he can do, it's to try with his own data and his own perl (I've used perl 5.20.0)