in reply to [OO] export data from Module
I tend to view Modules (Objects) as three headed thingies:
There is some penalty at load time (use/require MyModule), but that is a one-time cost, amortized over the life span of the Module Instance. It's relatively big for batch programming -- say 1-2% of the run time, each time; but it's negligable for long running apps (read a mod_perl handler or its ilk). (This is the "I don't care that it takes fifteen more seconds at Apache start-up, the last time we re-initialized Apache was four MONTHS ago, and every third request uses that API!" argument.)
On balance, I'd go with the accessors.
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: [OO] export data from Module
by Jaap (Curate) on Apr 29, 2004 at 18:27 UTC |