|
Posted by Jerry Stuckle on 11/25/07 12:58
FFMG wrote:
> Jerry Stuckle;105173 Wrote:
>> FFMG wrote:
>>> Jerry Stuckle;105090 Wrote:
>>>> No, this is not correct. It will be done on every page request.
>>>>
>>>>> Whereas EXAMPLE B will open, read, close the file every single
>> time
>>>>> there is a page request.
>>>>>
>>>> Correct.
>>>>
>>> Are you saying that the included scripts are revalidated every
>> single
>>> time?
>>>
>>> That doesn't seem very efficient/logical to me.
>>> Are you sure?
>>>
>>> Surely some code is in memory.
>>>
>>> FFMG
>>>
>>>
>> Nope. They are revalidated every time. But it's pretty fast.
>>
>> Examine the source code if you want. It's available on the PHP site.
>>
>
> I am not doubting you, I just find it very strange that some code has
> not been optimized.
>
> I would have thought that some code, (or even sections of code), are
> only parsed once.
>
> That is why, (in the example given), I would have thought that EXAMPLE
> A would be far more efficient than EXAMPLE B.
> But essentially they are the same.
>
> FFMG
>
>
And why are you surprised? Are you having a performance problem? Do
you see anyplace where this causes a problem? Parsing is quite fast. I
have never seen a performance problem cause by the parser.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|