http://qs1969.pair.com?node_id=1167054


in reply to Use more than one threads for one file processing

If you want my honest opinion, I think the work of bioinformaticians is important, especially if it has anything remotely to do with curing some disease that my shorten MY life.

So, I recommend that you go to your boss and tell him you either need a faster computer OR you need yet another computer.

I think it is a waste of your precious time to be learning how to coax Perl to use multiple threads. Your time is better spent on doing what you do best: bioinformatics.

Oh, and keep us informed.

Replies are listed 'Best First'.
Re^2: Use more than one threads for one file processing
by marioroy (Prior) on Oct 10, 2016 at 20:21 UTC

    A lot of effort when into the MCE module to assist bioinformaticians in regards to using multiple cores. MCE includes logic allowing one to process input by specifying a record separator. In the OP's case, to anchor "@" at the start of the line: "\n@". Workers receive record(s) beginning with "@", not "\n@".

    Basically, MCE wraps serial code with little code to consume multiple cores.

    Regards, Mario.