I asked this question on php.general, but I didn't get any reply. So
I'm asking here now.
As you already know, when an identifier is not found to be a defined
constant, php interprets it as a string.
For example:
<?
$var=hello ;
?>
the "constant" hello is not defined, so $var takes the value "hello".
My question is the following:
I have a large script with several thousands of strings.
In order to reduce the files size, I removed all the quotes from the
strings.
What is the performance impact of this in terms of cpu-time and system
resources required??
I mean, the script will take longer to execute??
will it take more cpu??
Thanks in advance.
I'm asking here now.
As you already know, when an identifier is not found to be a defined
constant, php interprets it as a string.
For example:
<?
$var=hello ;
?>
the "constant" hello is not defined, so $var takes the value "hello".
My question is the following:
I have a large script with several thousands of strings.
In order to reduce the files size, I removed all the quotes from the
strings.
What is the performance impact of this in terms of cpu-time and system
resources required??
I mean, the script will take longer to execute??
will it take more cpu??
Thanks in advance.
Comment