Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: large perl module

by minek (Novice)
on Mar 04, 2010 at 22:27 UTC ( [id://826833]=note: print w/replies, xml ) Need Help??


in reply to Re^2: large perl module
in thread large perl module

Within Apache it might be of course different,
but judging from running a test perl script from command line, the load time of the script/module is below 0.5s
And the MaxRequestsPerChild is actually set to 10000.
So it should be fine..

Thanks, Dan

Replies are listed 'Best First'.
Re^4: large perl module
by CountZero (Bishop) on Mar 05, 2010 at 07:05 UTC
    And then your webserver has to service 1000 requests per second and it goes down every 10 seconds. It is not just the loading of the module that needs to be taken into account, but also the time spent in cleanly destroying the child workers and restarting them. That can actually take a lot longer and thus you want to keep the total time as short as possible, by avoiding long loading times of modules. Every second saved helps.

    It is just a gut feeling, but a database solution feels more efficient to me.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found