Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Use of Autoloader in Modern Times

by Tommy (Chaplain)
on Nov 15, 2012 at 23:08 UTC ( #1004075=note: print w/ replies, xml ) Need Help??


in reply to Re: Use of Autoloader in Modern Times
in thread Use of Autoloader in Modern Times

...Right, but it's an extra I/O op (or more) just to pull in the sub out of the .al file, each on an individual basis...

Are the savings worth the cost?

--
Tommy
$ perl -MMIME::Base64 -e 'print decode_base64 "YWNlQHRvbW15YnV0bGVyLm1lCg=="'


Comment on Re^2: Use of Autoloader in Modern Times
Download Code
Replies are listed 'Best First'.
Re^3: Use of Autoloader in Modern Times
by hippo (Vicar) on Nov 15, 2012 at 23:33 UTC

    Presumably that will depend on the individual script's use case.

    If only 1 of every 1000 runs will perform the conditional require, then it's probably negligible. If 999 of every 1000 runs needs it, then it is probably not negligible.

    If in doubt, benchmark!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2015-07-29 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls