Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Use of do() to run lots of perl scripts

by LanX (Saint)
on Mar 02, 2021 at 18:26 UTC ( [id://11129024]=note: print w/replies, xml ) Need Help??


in reply to Use of do() to run lots of perl scripts

> Would it make sense to modify my application so that worker perl scripts are invoked via do() instead of system calls?

no, the most common bottlenecks are

  • access to FS to read file
  • compilation time at start-up

do FILE can't solve this, only pre-compiling all scripts and keeping them in memory, the way modperl or FCGI do.

Although first step should be a thorough analysis where the performance is lost.°

Worst-case would be that you'll need to expand to a multi-server farm.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) sometimes a RAM disk is the easiest solution.

update

I missed the info about the pre-froking. see Re^4: Use of do() to run lots of perl scripts for more

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-23 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found