/    Sign up×
Community /Pin to ProfileBookmark

using includes, how fast?

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?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@SamMar 01.2004 — to my knowledge, it would only take the bandwidth for the 50k file you're including + the ~20bytes for the include line
Copy linkTweet thisAlerts:
@olafauthorMar 01.2004 — 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?
Copy linkTweet thisAlerts:
@patpawlowskiMar 01.2004 — 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.
Copy linkTweet thisAlerts:
@SamMar 01.2004 — is the 50k file all html or just is there php to be executed serverside as well?
Copy linkTweet thisAlerts:
@olafauthorMar 01.2004 — 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.
×

Success!

Help @olaf spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...