[PHP] include/require vs performance

2003-01-03 Thread Radek Zajkowski
i am designing a small app that obviuosly works best when I have a lot of 
global files with functions, which cut down on editing.

I will likely have a main page that will contain modules and also load 
all of the required includes like config etc. in total some 10 files will 
be reqested.

Is there, was there ever issue around including a lot files via 
include(). I am running things on a local server so it's hard to gauge.

Thansk in advance.

R 

___
Radoslaw Zajkowski
http://www.finalbanana.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include/require vs performance

2003-01-03 Thread Rasmus Lerdorf
 Is there, was there ever issue around including a lot files via
 include(). I am running things on a local server so it's hard to gauge.

I don't understand that comment.  includes/requires are always (well
nearly anyway) local to the server regardless of where the request is
coming from.  So if you have a test box and it is fast enough for you,
then go with it.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include/require vs performance

2003-01-03 Thread Michael J. Pawlowsky

These files are parsed by the interpreter...
They are not sent to the client, so I you are thinking bandwidth I dont see how it 
would affect it.
Unless they all output a bunch of data.

Of course there will be some overhead for PHP to interpret all that code.

Mike



*** REPLY SEPARATOR  ***

On 03/01/2003 at 8:25 AM Radek Zajkowski wrote:

i am designing a small app that obviuosly works best when I have a lot of
global files with functions, which cut down on editing.

I will likely have a main page that will contain modules and also load
all of the required includes like config etc. in total some 10 files will
be reqested.

Is there, was there ever issue around including a lot files via
include(). I am running things on a local server so it's hard to gauge.

Thansk in advance.

R

___
Radoslaw Zajkowski
http://www.finalbanana.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include/require vs performance

2003-01-03 Thread Marek Kilimajer
He likely ment that his local server is simply fast enough that any 
speed defference is unnoticeable,
but on a shared host this might make some difference.
Use include/require as you are more comfortable with it.

Rasmus Lerdorf wrote:

Is there, was there ever issue around including a lot files via
include(). I am running things on a local server so it's hard to gauge.
   


I don't understand that comment.  includes/requires are always (well
nearly anyway) local to the server regardless of where the request is
coming from.  So if you have a test box and it is fast enough for you,
then go with it.

-Rasmus

 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include/require vs performance

2003-01-03 Thread R . Z .
Sorry if this was not 100% clear. In a nutshell the app I'm making will 
be available for poeple to use. My feeling is that there will be users 
using shared servers, which under a stress tend to suck. The only thing 
in this one I'm doing that;s new to me is having some 20 includes loaded 
as I need them, sometimes up to 10 at a time, hence the concern.

Thanks for all your responses, I got enough info to go on. ANother words, 
this should not be a problem.

R

http://sourceforge.net/projects/athena-research

 Is there, was there ever issue around including a lot files via
 include(). I am running things on a local server so it's hard to gauge.

I don't understand that comment.  includes/requires are always (well
nearly anyway) local to the server regardless of where the request is
coming from.  So if you have a test box and it is fast enough for you,
then go with it.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


___
Radoslaw Zajkowski
http://www.finalbanana.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php