Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^8: Script exponentially slower as number of files to process increases

by xnous (Sexton)
on Jan 30, 2023 at 22:01 UTC ( [id://11150044] : note . print w/replies, xml ) Need Help??


in reply to Re^7: Script exponentially slower as number of files to process increases
in thread Script exponentially slower as number of files to process increases

Ran some more tests, your latest mceiter2.pl script is consistently faster (albeit by a small margin) than fork.pl, however the run time includes the output file merging which is a measurable gain.
  • Comment on Re^8: Script exponentially slower as number of files to process increases

Replies are listed 'Best First'.
Re^9: Script exponentially slower as number of files to process increases
by marioroy (Prior) on Jan 30, 2023 at 22:39 UTC

    So nice of you to write back. That script you linked to is quite efficient, considering it factors out entirely the manager process having to merge (now handled by the workers, cooperatively).