Parallel calculations: Difference between revisions
→{{header|Perl 6}}: Fix some incorrect information
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Fix some incorrect information) |
|||
Line 1,490:
=={{header|Perl 6}}==
Takes the list of numbers and converts them to a <tt>HyperSeq</tt> that is stored in a
The hyper (and race) method can take two parameters that will tweak how the parallelization occurs: :degree and :batch. :degree is the number of worker threads to allocate to the job. By default it is set to the number of physical cores available. If you have a hyper threading processor, and the tasks are not cpu bound, it may be useful to raise that number but it is a reasonable default. :
On my system, under the load I was running, I found a batch size of 3 to be optimal for this task. May be different for different systems and different loads.
|