On Tue, 12 Dec 2000, Jeremy Howard wrote:

> Joshua Chamas wrote:
> > If you are using CGI.pm object methods, I would worry about calling
> > all those methods to build your HTML and if you are performance
> > minded, I would use them frugally.
> >
> IIRC, CGI.pm is actually slower to run the functional syntax than the object
> syntax. This is because accessing CGI's functions end up getting dispatched
> through a complex autoload(ish) mechanism.
> 
> I haven't benchmarked this though, so it's only theory!

It's documentated and benchmarked in the guide:
http://perl.apache.org/guide/performance.html#Object_Methods_Calls_vs_Functio
http://perl.apache.org/guide/performance.html#Are_All_Methods_Slower_than_Func

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  


Reply via email to