The benefit to multithreading is you can dial your performance up and down depending on how many resources are available to you.
Sorry, but have you actually run and times that code?
Because it will, unfortunately, run anything from 5 to 50 times slower than the single threaded version on any build of Perl, or OS, I am familiar with.
In reply to Re^3: Process large text data in array
by BrowserUk
in thread Process large text data in array
by hankcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |