minerbog Posted February 10, 2010 Share Posted February 10, 2010 Hi All, Its my first day here so please be gentle! My site is now getting very, shall we say difficult to read! A lot of the code is repeated so I want to put them into reusable functions. My question is though, if I say, have an include called security that has 12 functions in it and in a particular page I only need to use 1 function, does that fact the other 11 are there impact on performance? I.E. are they read even though they are never called? Many Thanks Gavin. Link to comment https://forums.phpfreaks.com/topic/191589-php-functions-vs-performance/ Share on other sites More sharing options...
teamatomic Posted February 10, 2010 Share Posted February 10, 2010 Not really. I guess it would if you had like 100 but even then it would be negligible. But if you want you could even categorize them a bit more by type or user vs admin etc. to make the include a bit smaller. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/191589-php-functions-vs-performance/#findComment-1009945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.