> If applying optimizations in multiple passes would be a problem for speed,
> especially on the first request, then maybe a way to solve this would be
> to have
> a configurable variable like: opcache.passes which is between 1 and 10
> (lets say)
> and then have the engine do something like
> this:

My gut/educated guess is that in fact it's not going to be a problem with
the kinds of optimizations that are practical for our execution engine (our
ability to be ultra-creative with optimizations is very limited, compared to
say gcc).  I'd defer solutions to that problem until we actually see that
it's a real problem to begin with.  Generally, the book-keeping involved
with selectively and intelligently applying optimizations is probably going
to be more costly than doing them in the first place - but that obviously
depends on the nature of optimizations we'll come up with.

Zeev

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to