mat-tastic Posted February 13, 2009 Share Posted February 13, 2009 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? Link to comment https://forums.phpfreaks.com/topic/145052-does-including-files-reduce-execution-time/ Share on other sites More sharing options...
Mark Baker Posted February 13, 2009 Share Posted February 13, 2009 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). Link to comment https://forums.phpfreaks.com/topic/145052-does-including-files-reduce-execution-time/#findComment-761151 Share on other sites More sharing options...
mat-tastic Posted February 13, 2009 Author Share Posted February 13, 2009 hmm ok. Thanks Just writing the new functions file now. His old code is so messy and nearly unreadable. At least this way it is in a nice laid out logical fashion. Link to comment https://forums.phpfreaks.com/topic/145052-does-including-files-reduce-execution-time/#findComment-761152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.