peach

Syntax

peach(func, args...)

Details

peach is the parallel computing version of template function each. For tasks that take a long time to finish, peach can save a significant amount of time over each. For light tasks, however, peach may take longer than each as the overhead of parallel function call is not trivial.

Refer to DistributedComputing for the details of Parallel Function Call.

Examples

m=rand(1,20000:5000)
timer f=peach(mskew{,8},m)
Time elapsed: 3134.71 ms

timer f=mskew(m,8)
Time elapsed: 8810.485 ms