Parallel::Simple - Simplest way to run code blocks in Parallel
I generally write my scripts in a linear fashion. Do A, then B, then C. However, I often have parts that don't depend on each other, and therefore don't have to run in any particular order, or even linearly. I could save time by running them in parallel - but I'm too lazy to deal with forking, and reaping zombie processes, and other nastiness.
The goal of this module is to make it so mind-numbingly simple to run blocks of code in parallel that there is no longer any excuse not to do it, and in the process, drastically cut down the runtimes of many of our applications, especially when running on multi-processor servers (which are pretty darn common these days).
Parallel code execution is now as simple as calling prun and passing it a list of code blocks to run, followed by testing the return value for truth using the common "or die" perl idiom.
735 views
Cool for Web Spiders
Fuse this with the LWP and Mechanize modules from perl, and it will make a cool spidering and app testing tool.
Post new comment