Re: Urgent patch for traits in PHP 5.4

From: Date: Fri, 13 Jan 2012 11:35:25 +0000
Subject: Re: Urgent patch for traits in PHP 5.4
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-57347@lists.php.net to get a copy of this message
Hi Lester: On 13 Jan 2012, at 11:51, Lester Caine wrote: > If developments like this slow down the general performance of PHP There shouldn't be any significant performance impact of the traits addition to the engine. Traits only cost you if you use them, and their cost is restricted to compilation time. With an adapted opcode cache, and with Dmitry's optimization even that cost should be gone. There is some general performance impact, and that comes from additional fields in the class struct. Thus, every class takes slightly more memory. Beside that, I do not recall performance relevant changes from the top of my head. Best regards Stefan -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525

« previous php.internals (#57347) next »