RE: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Zeev Suraski
> -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Tuesday, March 03, 2015 5:50 PM > To: Zeev Suraski > Cc: Julien Pauli; PHP internals > Subject: Re: [PHP-DEV] Re: About optimization for compiler > > Zeev, > > >> I agree

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Anthony Ferrara
Zeev, >> I agree with that as well, just Anthony gave a different opinion which >> seems >> right as well. > > I think that if we ever have optimization passes that are prohibitively > expensive to run interactively (most probably around JIT) we'll definitely > need new strategies for them. But a

RE: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Zeev Suraski
> -Original Message- > From: julienpa...@gmail.com [mailto:julienpa...@gmail.com] On Behalf Of > Julien Pauli > Sent: Tuesday, March 03, 2015 4:44 PM > To: Zeev Suraski > Cc: PHP internals > Subject: Re: [PHP-DEV] Re: About optimization for compiler > > I'

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Rowan Collins
Julien Pauli wrote on 03/03/2015 14:43: 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

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Julien Pauli
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

RE: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Zeev Suraski
> -Original Message- > From: julienpa...@gmail.com [mailto:julienpa...@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 co

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Julien Pauli
On Mon, Mar 2, 2015 at 9:47 PM, Anthony Ferrara wrote: > Julien, > > > > Bob's code optimizes things by adding a new OPCode. > > This is different from compiler optimizations. > > > > Compiler optimizations are about changing native, supported OPCode > > structures to other native supported OPCod

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-02 Thread Anthony Ferrara
Julien, > Bob's code optimizes things by adding a new OPCode. > This is different from compiler optimizations. > > Compiler optimizations are about changing native, supported OPCode > structures to other native supported OPCode structure, but that will run > faster at runtime. > > I agree with dm

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-02 Thread Julien Pauli
On Fri, Feb 27, 2015 at 4:30 PM, Dmitry Stogov wrote: > On Fri, Feb 27, 2015 at 6:22 PM, Bob Weinand wrote: > > > > > > Am 27.02.2015 um 16:12 schrieb Xinchen Hui : > > > > > > On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand > > wrote: > > >> Am 27.02.2015 um 07:53 schrieb Xinchen Hui : > > >> >

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Dmitry Stogov
On Fri, Feb 27, 2015 at 6:22 PM, Bob Weinand wrote: > > > Am 27.02.2015 um 16:12 schrieb Xinchen Hui : > > > > On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand > wrote: > >> Am 27.02.2015 um 07:53 schrieb Xinchen Hui : > >> > >> Hey: > >> > >> On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui > wrote:

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Bob Weinand
> Am 27.02.2015 um 16:12 schrieb Xinchen Hui : > > On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand wrote: >> Am 27.02.2015 um 07:53 schrieb Xinchen Hui : >> >> Hey: >> >> On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui wrote: >> >> Hey Internals: >> >> I was looking Bob's switch optimization

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-26 Thread Xinchen Hui
Hey: On Fri, Feb 27, 2015 at 2:41 PM, reeze wrote: > Hi, > > On 27 February 2015 at 14:26, Xinchen Hui wrote: >> >> Hey: >> >> On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui wrote: >> > Hey Internals: >> > >> > I was looking Bob's switch optimization.. >> > >> > then I start to worry

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-26 Thread reeze
Hi, On 27 February 2015 at 14:26, Xinchen Hui wrote: > Hey: > > On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui wrote: > > Hey Internals: > > > > I was looking Bob's switch optimization.. > > > > then I start to worry about where is the place optimization should > goes.. > > > >