Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Saving compile time by running subroutines as separate files with with 'do'

by clemburg (Curate)
on Oct 01, 2001 at 15:47 UTC ( #115827=note: print w/ replies, xml ) Need Help??


in reply to Saving compile time by running subroutines as separate files with 'do'

Basically, I doubt that the compile time reduction for the code will give you a significant speedup. And the separation of the code in several files organized by the control structure you suggest will probably expose some interdependencies of the split-out subroutines that you then need to take care of.

OTOH, what you suggest could be the start of real modularization (tm), meaning: why don't you do it the obvious way and collect your subroutines into logical groups (modules). Then you can use the built-in magic of Perl with AutoLoader and AutoSplit.

You might also want to have a look at the Apache Performance Tuning Guide.

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com


Comment on Re: Saving compile time by running subroutines as separate files with with 'do'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-01-26 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (186 votes), past polls