RE: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings
| From: | Dmitry Stogov | Date: | Thu, 17 May 2007 06:19:59 +0000 |
| Subject: | RE: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29489@lists.php.net to get a copy of this message | ||
The patch mainly improves not the parser, but generated code.
It builds near optimal ZEND_ADD_STRING, ZEND_ADD_VAR sequence for quoted
strings and heredoc.
You can see a small difference even on Zend/bench.php.
Thanks. Dmitry.
> -----Original Message-----
> From: Stanislav Malyshev [mailto:stas@zend.com]
> Sent: Thursday, May 17, 2007 12:03 AM
> To: Matt Wilmas
> Cc: internals@lists.php.net; Dmitry Stogov; 'Andi Gutmans'
> Subject: Re: [PHP-DEV] [PATCH] Major optimization for
> heredocs/interpolated strings
>
>
> Do we have any good performance testcases for the patch that
> show how it
> improves the parser?
>
> > The updated 5.2 patch is at the same address,
> > http://realplain.com/php/scanner_optimizations_5_2.diff,
> > and the
> > original was moved to
> > http://realplain.com/php/scanner_optimizations_5_2-v1.diff
> >
> --
> Stanislav Malyshev, Zend Products Engineer
> stas@zend.com http://www.zend.com/
>