"be consistent" | |
PerlMonks |
Re^4: script optmizationby Anonymous Monk |
on May 14, 2017 at 23:27 UTC ( [id://1190284]=note: print w/replies, xml ) | Need Help?? |
For memory constraint systems, one may run using a smaller size for chunk_size. In this case 4 MB will do just fine. For this demonstration, a smaller chunk size value decreases the wait time for workers to read again. It completes in 0.476 seconds for 26.4 x performance increase.
The slurped example is likely fast enough. Parallel is nice if you want that. But, serial doesn't take that long either. All completed in less than 20 seconds.
In Section
Seekers of Perl Wisdom
|
|