We had very similar idea in the past.
BTW it is possible to optimize function calls mach more.
Not only ZEND_DO_FCALL but also ZEND_INIT_FCALL_BY_NAME can be optimized,
and we can reuse the same cache entries for all op_arrays from the same PHP
file.
Sure, I went shallow with this first version j
ake a patch and send it to you in fey days.
Thanks. Dmitry.
> -Original Message-
> From: Sara Golemon [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 04, 2006 8:49 AM
> To: internals@lists.php.net
> Subject: [PHP-DEV] Function call speedup (CV applied to functions)
>
&
On 4-Dec-06, at 11:40 AM, Sara Golemon wrote:
Looks fairly interesting, I doubt 18% is consistent benefit across
the board
I doubt it very much too. While I made that test to strip out non-
fcall overhead, I also made it favor the effect being produced by
constantly calling the same func
Looks fairly interesting, I doubt 18% is consistent benefit across the
board
I doubt it very much too. While I made that test to strip out non-fcall
overhead, I also made it favor the effect being produced by constantly
calling the same function from the same scope. Reality isn't like that.
Looks fairly interesting, I doubt 18% is consistent benefit across
the board, and when unicode overhead is removed is probably less
still. But, it does look like a good optimization to make that would
certainly make PHP faster then before.
Ilia Alshanetsky
--
PHP Internals - PHP Runtime De
It's been a concept stuck in my mind since I first looked into ZE2.1 and
saw what compiled variables were, and a recent blog post
(http://php100.wordpress.com/2006/11/24/optimizations/) (which got
picked up by planet PHP) got my wheels spinning again. Tonight I
decided to actually sit down and