【发布时间】:2020-10-30 15:48:17
【问题描述】:
我有一个简单的问题: 当我自动加载“spl_autoload_register()”每个文件中的所有文件/类时,它对服务器性能有影响吗?还是代码的性能?
例如主文件:
<?php
include "xxx"
include "YYY" <- Class1{}
include "ZZZ"
$callClass = new Class1();
$callClass->function();
?>
我的代码进程是全部包含文件还是只包含需要的文件?
【问题讨论】: