in reply to Forking Multiple Regex's on a Single String

And because the file output will almost certainly be the limiting step, am I being silly in parallelizing this in the first place?

No one can give you a good answer, without doing a really good benchmark, but there are two things you ought to consider.

As far as possible, routines that benefit from parallelization should be completely independent. If you really need parallel processing here, have each process write to its own file, then merge them (if necessary).

  • Comment on Re: Forking Multiple Regexes on a Single String