Re: Re: About optimization for compiler
| From: | Julien Pauli | Date: | Tue, 03 Mar 2015 14:43:45 +0000 |
| Subject: | Re: Re: About optimization for compiler | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84237@lists.php.net to get a copy of this message | ||
On Tue, Mar 3, 2015 at 2:52 PM, Zeev Suraski <zeev@zend.com> wrote:
> > -----Original Message-----
> > From: julienpauli@gmail.com [mailto:julienpauli@gmail.com] On Behalf Of
> > Julien Pauli
> > Sent: Monday, March 02, 2015 9:07 PM
> > To: Dmitry Stogov
> > Cc: Bob Weinand; Xinchen Hui; PHP Internals
> > Subject: Re: [PHP-DEV] Re: About optimization for compiler
> >
> > As OPCache is nowadays not compatible at all with PHP7 (development has
> > not started yet, or I'm not aware of it) , why not merge OPCache to PHP7
> > source tree (when the time for this will come), still as an extension at
> > first
> > time, and keep developing optimizer passes into this (aka : not in Zend/)
> > ?
>
> It's a bit OT, but can you explain what you mean here? OPcache works with
> the current master (PHP 7), and actually, OPcache worked with phpng all
> along and definitely since it was merged into master... It's been
> integrated to the php-src tree since it became standard in 5.5. Do you
> mean
> the standalone github repos for older versions?
>
I'm looking at https://github.com/zendtech/ZendOptimizerPlus
, I cant find
anything related to PHP7 for OPCache.
So I was thinking OPCache was not compatible yet with PHP7.
>
> > I'm also +1 to keep our optimizations into OPCache (into an extension),
>
> I'm slightly confused - you mean keep it in (or move optimization over to)
> the OPcache extension, or move it into its own extension?
> If it's the former, then I agree. Optimization passes and opcode caching
> are very much linked, as performing optimizations without having an opcode
> cache rarely makes sense.
>
I agree with that as well, just Anthony gave a different opinion which
seems right as well.
Julien.P