Jump to content

Does including files reduce execution time?


mat-tastic

Recommended Posts

Hey.

 

When I took over as PHP devoloper for a website, I inherited some of the code. The previous designer was very messy with his code and has this file which is 500 of lines long.

 

Loading times are sometimes a bit slow.

 

Would it make it quicker, if I put all the functions in something like functions.php, and simply reduce the main PHP page to function calls and other necessary stuff? Would it make a difference?

It does have an affect, but it's only a few fractions of a second; and probably not something you'd notice.

 

Slow performance is more likely to be related to database or file access within the script, or to inefficient coding (particularly in loops).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.