in reply to Re^2: An efficient way to parallelize loops
in thread An efficient way to parallelize loops

The patterns are not complex, but long, since they're made of all the elements of long arrays, separated by "|" (with the intent of alternatively match different patterns).

Then you'll likely benefit from running perl 5.10 or newer, since it implements a Trie optimization for alternations of literal patterns. If the arrays are really huge, you could increase the value of ${^RE_TRIE_MAXBUF} to make them all fit into the same trie.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re^3: An efficient way to parallelize loops

Replies are listed 'Best First'.
Re^4: An efficient way to parallelize loops
by Deus Ex (Scribe) on Jun 01, 2010 at 12:48 UTC

    I've been working on a machine which is not run by me. There's only a 5.8 perl environement, and no way to get it upgraded.

    Thanks for the hint though.