Click to See Complete Forum and Search --> : using includes, how fast?


olaf
03-01-2004, 06:26 AM
Hallo,

If i build a page with includes, for example a class about 50KB. The page which i want to send to the browser is only 10kb. How much does the filesize of the class decrease the downloadspeed of a file?

Sam
03-01-2004, 11:28 AM
to my knowledge, it would only take the bandwidth for the 50k file you're including + the ~20bytes for the include line

olaf
03-01-2004, 12:23 PM
That, makes no sense...

The script is server-side executed and the html comes back to server. What i like to know is, how much is het different to execute a script from 50kb or 20kb. Is there a (big) difference?

patpawlowski
03-01-2004, 03:49 PM
If the extra 50k is a class then there is nothing there to execute so it shouldn't take any extra time. The download speed will pretty much be the same whether you include the class in the main document or use an include.

Sam
03-01-2004, 03:51 PM
is the 50k file all html or just is there php to be executed serverside as well?

olaf
03-01-2004, 04:20 PM
Hallo,

The 50KB is just an example. If you look at the popular classes then you will notice that the most of the code is executed SS and only a small part will be send to the browser.