Re: Re: [DRAFT] [RFC] Function autoloading
| From: | Sebastian Krebs | Date: | Fri, 30 Aug 2013 22:31:27 +0000 |
| Subject: | Re: Re: [DRAFT] [RFC] Function autoloading | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68764@lists.php.net to get a copy of this message | ||
2013/8/31 Stas Malyshev <smalyshev@sugarcrm.com>
> Hi!
>
> > We got a performance win from exactly this at Facebook. We have some
> > extensions in HHVM to autoload that allowed us to remove almost all
> > our *_once calls.
>
> But autoloading does not remove require - you still have to load the
> files.
But it removes many many 'require_once's.
> Only thing that can be removed is a non-loading require. Is it
> that frequent that it had significant performance impact (given that
> with opcode caching non-loading require is pretty much a couple of hash
> lookups)?
>
Those, who doesn't wrap anything in classes, can see this very frequently.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
github.com/KingCrunch