dreamwest Posted July 16, 2009 Share Posted July 16, 2009 I have alot of ifelse clauses in my search script which adds up to 20KB. I wondering if i put these into an external file as functions or include the ifelse script if(somethin == true){ function stuff(one,two); } or a ifelse include include_once('ifelse.php'); Would this increase my loading time and wich would be faster? Link to comment https://forums.phpfreaks.com/topic/166142-couple-of-question-about-php-speed/ Share on other sites More sharing options...
Alex Posted July 16, 2009 Share Posted July 16, 2009 Setting the contents of an elseif to a function would just increase the time it takes it to process (though, not noticeably) because it's calling an additional function. The same would hold true for the include. Link to comment https://forums.phpfreaks.com/topic/166142-couple-of-question-about-php-speed/#findComment-876191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.