Re: Re: [DRAFT] [RFC] Function autoloading

From: Date: Fri, 30 Aug 2013 17:04:32 +0000
Subject: Re: Re: [DRAFT] [RFC] Function autoloading
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Sat, Aug 31, 2013 at 12:13 AM, Leigh <[email protected]> wrote:
> On Aug 30, 2013 1:31 PM, "Anthony Ferrara" <[email protected]> wrote:
>> For constants and function calls, the benchmark shows that the difference
>> is well within the margin of error for the test (considering variances of
>> 5% to 10% were common in my running of the tests).
>>
>> So hopefully this will dispel any worry about performance regressions in
>> currently defined cases.
>>
>> The times where performance will take a hit, is with undefined functions
>> and constants. Today, an undefined function will fatal error, so this
>> performance hit would be 0, as it would enable something that's not
>> possible today.
>
> I would assume there is actually potential for performance gain for
> functions being autoloaded in larger codebases when the *_once calls are
> removed that would normally load the common functions files.

I just reply to this point:

No. thinking we already have opcache there. so, *compiling* Functions is cheap.

but if with function autoloading, *function autoloading* will execute every run.

thanks

-- 
Laruence  Xinchen Hui
http://www.laruence.com/


Thread (72 messages)

« previous php.internals (#68735) next »