Suppose I have over 100 files called in via require_once() command. Is this inducing a significant burden over the load of the server?
If so, what are some possible ways I can reduce this burden while still including the same number of files.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, requiring lots of files has a significant impact on performance because every file has to be read and parsed on every page load.
Using an opcode cache like APC or one of its many alternatives will reduce this overhead to almost 0 from the second call, as the file will already be parsed and available in the cache.