Just a thought, now dl() has been deprecated and disabled in SAPIs (except
CLI,CGI,embed), would that mean extension_loaded() would become a
optimizable function?
In non-dl SAPIs probably yes, that would be the consequence.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http
imized to be more APC friendly?
Jared
> -Original Message-
> From: Nuno Lopes [mailto:[EMAIL PROTECTED]
> Sent: 14 September 2007 18:01
> To: PHPdev
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-DEV] RFC: mark functions as const for poss
I had a quick question about this. When would strlen('abcd') be execuated?
Say I had the code:
$a = false; // This set by external input
if ( $a )
$b = strlen('abcd');
Would the optimizer work out the length before the program starts to run?
Or would the optimizer wait until it knows the strl
From: "Nuno Lopes" <[EMAIL PROTECTED]>
To: "PHPdev"
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
My proposal is the following:
some functions when fed with constant arguments always return a constant
value, too. e.g.:
strlen('abcd') === 4.
This means that an optimizer ca
Nuno Lopes wrote:
> My proposal is the following:
> some functions when fed with constant arguments always return a constant
> value, too. e.g.:
> strlen('abcd') === 4.
wouldn't that be called "deterministic" and not "const"?
yeah, exactly. I was missing the correct wording. (btw, appart of b
Nuno Lopes wrote:
My proposal is the following:
some functions when fed with constant arguments always return a constant
value, too. e.g.:
strlen('abcd') === 4.
wouldn't that be called "deterministic" and not "const"?
--
Hartmut Holzgraefe, Principal Support Engineer
.
Discover
Hi,
Following my last post on bytecode optimization
(http://news.php.net/php.internals/32113), I would like to discuss a few
more things.
The patch in that e-mail allowed the engine itself to do transformations
like, e.g.:
$a = 1*2*3*4*5+1-0; --> $a = 121;
However the patch is now a bit d