Tommy has asked for the wisdom of the Perl Monks concerning the following question:
Historically, the use of Autoloader (and autosplit) was to save time loading up libraries of code by tucking away the lesser-used library features into files that got pealed off the final installation of the library and automagically loaded up by perl when a call for such an autoloaded method was made.
The upside was that you saved load/compile time. The downside is that it is expensive to load up these files on demand with all the overhead incurred in such an operation, especially on a one-by-one basis.
So now that I've told everyone what you already know, I'll get to the point of my question:
It seems like the computational savings historically provided by Autoloader are quickly becoming irrelevant. I have made use of Autoloader in some of my modules and perhaps that has helped folks who used them in their early days, some ten years ago... but nowadays? Hmmmm. I think it probably does not.
So I am asking for your opinions on the subject; to me it seems like a logical decision to dump Autoloader (and autosplit). Do you see any reason(s) to the contrary? For a module that's only 2500 lines, does it make any sense at all to autosplit off 1000 of them anymore? Tests I've run on modern consumer-grade machines show extremely negligable gains, and on enterprise servers, the savings would be practically zero.
Are there reasons why we would continue to use Autoloader? What do you think, monks?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use of AutoLoader in Modern Times (future)
by tye (Sage) on Nov 16, 2012 at 00:27 UTC | |
by tobyink (Canon) on Nov 16, 2012 at 14:57 UTC | |
|
Re: Use of Autoloader in Modern Times
by tobyink (Canon) on Nov 15, 2012 at 20:52 UTC | |
|
Re: Use of Autoloader in Modern Times
by bulk88 (Priest) on Nov 15, 2012 at 22:28 UTC | |
by chromatic (Archbishop) on Nov 16, 2012 at 00:31 UTC | |
by tye (Sage) on Nov 16, 2012 at 00:48 UTC | |
by jgamble (Pilgrim) on Nov 18, 2012 at 18:27 UTC | |
by chromatic (Archbishop) on Nov 19, 2012 at 00:02 UTC | |
by Tommy (Chaplain) on Nov 15, 2012 at 23:08 UTC | |
by hippo (Archbishop) on Nov 15, 2012 at 23:33 UTC |