in reply to Re^4: Help me beat NodeJS
in thread Help me beat NodeJS

If you just looking for a plain string not a regex, then it should be quicker to use index

while (my $line = <$fh> ) { if (index($line,$pattern) != -1 ) { ... } }

Replies are listed 'Best First'.
Re^6: Help me beat NodeJS
by marioroy (Prior) on Feb 13, 2016 at 23:41 UTC

    yes, ++

      Very nice, thank you.