|
Posted by FFMG on 11/25/07 07:35
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
--
'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=22555
Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).
Navigation:
[Reply to this message]
|