I have PHP function file with ~2,000 rows and I always include it for each page. Do those many rows make my site slower? Should I separate function file to different files? Thank you.
Share
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.
What do you have 2k lines of code that you must run on every page? Depending on what it’s doing (processing / database calls / etc) it could significantly slow down the site, not to mention also clutter up the application itself.
If I’m understanding you right there is simply a bunch of functions? If so, then they aren’t getting run unless you call them, and as such won’t slow it down noticeably.