View Single Post
Old 03-30-2010, 10:43 PM  
goldfish
Confirmed User
 
goldfish's Avatar
 
Join Date: Jan 2009
Location: Somewhere east of the Mississippi
Posts: 723
PHP Programmers - A question

I was under the impression function files as includes were for frequently used functions so as to keep from having to repeat them.

So I am rebuilding a script and I came across a function file, 4566 lines long!

Many of the functions found inside are single use functions meaning they are called by one file and then never used again until the next time that file calls it again.

So my question on a high traffic site should these these single use functions be placed in an include file or the file that is calling it when my focus is speed and server load impact to a minimum?
__________________
ICQ: 566990329

"There is no rest for the wicked... and porn purveyors!
goldfish is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote