Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Splitting large array for threads.

by perlfan (Curate)
on Jun 16, 2014 at 20:49 UTC ( #1090072=note: print w/replies, xml ) Need Help??

in reply to Splitting large array for threads.

I would get working your serial version of the code before you create a threaded version of what you wish to do.

Once you do this, you can think about how it makes most sense to split the work amongst your threads.

If your input file is indeed an array, perhaps even of numbers, then I would consider looking at the various options and interfaces the Perl Data Language gives you.

You may also want to consider using a truly threaded Perl like language like Qore if you wish to do things in a more native way. I have a talk linked via perlfan for it as it relates to Perl programmers.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090072]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-06-20 22:15 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.