Re: Improvements to for-each implementation
| From: | Yasuo Ohgaki | Date: | Tue, 27 Jan 2015 18:48:46 +0000 |
| Subject: | Re: Improvements to for-each implementation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81253@lists.php.net to get a copy of this message | ||
Hi Dmitry,
On Wed, Jan 28, 2015 at 1:55 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> I'm working on a PoC, implementing the proposed behavior -
> https://gist.github.com/dstogov/a311e8b0b2cabee4dab4
>
> Only few PHPT tests had to be changed to confirm new behavior and actually
> they started to behave as HHVM.
> 2 tests are still unfixed XFAILed. Foreach by reference is still need to be
> improved to support different array modifications.
>
> The patch makes ~1% improvement on Wordpress-3.6 (saving duplication and
> destruction of 200 arrays on each request)
>
Great!
--
Yasuo Ohgaki
yohgaki@ohgaki.net