我有一个include
语句,我根据方法参数动态调用。需要2.7秒。如果相同的包含在课程之上,则没有延迟。
class queryDao
{
function queryDao($plugindir,$queryname,$tablename)
{
//$time_start = microtime_float();
include_once $plugindir."/resources/queries/$queryname".".php";
//$time_end = microtime_float();
//echo "elapsed seconds1 $time_end $time_start : ".($time_end-$time_start). " seconds";
if($tablename!="")
{
}
else
{
$this->myquery=new $queryname();
}
}
}
有什么想法吗?