| 1 |
Parallel::Iterator |
| 2 |
|
| 3 |
This module provides a 'parallel map'. Multiple worker processes are |
| 4 |
forked so that many instances of the transformation function may be |
| 5 |
executed simultaneously. |
| 6 |
|
| 7 |
For time consuming operations, particularly operations that spend most |
| 8 |
of their time waiting for I/O, this is a big performance win. It also |
| 9 |
provides a simple idiom to make effective use of multi CPU systems. |
| 10 |
|
| 11 |
There is, however, a considerable overhead associated with forking, so |
| 12 |
the example in the synopsis (doubling a list of numbers) is *not* a |
| 13 |
sensible use of this module. |
| 14 |
|
| 15 |
INSTALLATION |
| 16 |
|
| 17 |
This is a Perl module distribution. It should be installed with |
| 18 |
whichever tool you use to manage your installation of Perl, e.g. any of |
| 19 |
|
| 20 |
cpanm . |
| 21 |
cpan . |
| 22 |
cpanp -i . |
| 23 |
|
| 24 |
Consult http://www.cpan.org/modules/INSTALL.html for further |
| 25 |
instruction. Should you wish to install this module manually, the |
| 26 |
procedure is |
| 27 |
|
| 28 |
perl Makefile.PL |
| 29 |
make |
| 30 |
make test |
| 31 |
make install |
| 32 |
|
| 33 |
COPYRIGHT AND LICENSE |
| 34 |
|
| 35 |
This software is copyright (c) 2007 by Andy Armstrong. |
| 36 |
|
| 37 |
This is free software; you can redistribute it and/or modify it under |
| 38 |
the same terms as the Perl 5 programming language system itself. |