There is a cycle:
foreach(array('1.php', '2.php', '3.php') as $require_file) { require_once($require_file); }
Question: Is there a possibility of increasing server load and reducing the performance of the system as a whole, or vice versa?
There is a cycle:
foreach(array('1.php', '2.php', '3.php') as $require_file) { require_once($require_file); }
Question: Is there a possibility of increasing server load and reducing the performance of the system as a whole, or vice versa?
Is there any chance of increasing server load?
Excuse me, compared to what?
Connect 5 files separately or 5 files in a loop? No, there will be no difference. Look also towards the autoloader.
In the cycle, the load, of course, will be higher (for fans who want to save on matches, by one match). But if you want to really reduce the load, use require instead of require_once or write your own function to check the connected files.
Source: https://ru.stackoverflow.com/questions/71330/
All Articles