Почему функция Битча быстрее этой функции?
Измерения папки C:\DevelStudio 3.0 beta:
папка C:\DevelStudio 3.0 beta\core:
______________________________
Подскажите плиз
PHP код:
#Писал я!
function ScanRecursive($__dir){
$scan = array();
$_dir = dir($__dir);
while (false !== ($file = $_dir->read())){
if($file != '.' and $file != '..')
if( !is_file($__dir.'/'.$file)){
$scan[] = ScanRecursive($__dir.'/'.$file);
}else
$scan[$file] = $file;
}
$_dir->close();
return $scan;
}
PHP код:
2.10363197327 моя
0.0777621269226 его
PHP код:
0.0105791091919 моя
0.0119009017944 его
Подскажите плиз