N°2272 - OQL performance (OQL class tree wip)

This commit is contained in:
Eric
2019-09-13 17:20:03 +02:00
parent 128afc8a56
commit 93a736e42a
7 changed files with 557 additions and 4 deletions

View File

@@ -279,7 +279,7 @@ class ClassLoader
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}
/**
@@ -377,7 +377,7 @@ class ClassLoader
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
$search = $subPath . '\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {

View File

@@ -282,7 +282,10 @@ return array(
'NewObjectMenuNode' => $baseDir . '/application/menunode.class.inc.php',
'NewsroomProviderBase' => $baseDir . '/application/newsroomprovider.class.inc.php',
'NiceWebPage' => $baseDir . '/application/nicewebpage.class.inc.php',
'OQLClassNode' => $baseDir . '/core/oqlclassnode.class.inc.php',
'OQLClassTreeBuilder' => $baseDir . '/core/oqlclasstreebuilder.class.inc.php',
'OQLException' => $baseDir . '/core/oql/oqlexception.class.inc.php',
'OQLJoin' => $baseDir . '/core/oqlclassnode.class.inc.php',
'OQLLexer' => $baseDir . '/core/oql/oql-lexer.php',
'OQLLexerException' => $baseDir . '/core/oql/oql-lexer.php',
'OQLLexerRaw' => $baseDir . '/core/oql/oql-lexer.php',

View File

@@ -503,7 +503,10 @@ class ComposerStaticInit0018331147de7601e7552f7da8e3bb8b
'NewObjectMenuNode' => __DIR__ . '/../..' . '/application/menunode.class.inc.php',
'NewsroomProviderBase' => __DIR__ . '/../..' . '/application/newsroomprovider.class.inc.php',
'NiceWebPage' => __DIR__ . '/../..' . '/application/nicewebpage.class.inc.php',
'OQLClassNode' => __DIR__ . '/../..' . '/core/oqlclassnode.class.inc.php',
'OQLClassTreeBuilder' => __DIR__ . '/../..' . '/core/oqlclasstreebuilder.class.inc.php',
'OQLException' => __DIR__ . '/../..' . '/core/oql/oqlexception.class.inc.php',
'OQLJoin' => __DIR__ . '/../..' . '/core/oqlclassnode.class.inc.php',
'OQLLexer' => __DIR__ . '/../..' . '/core/oql/oql-lexer.php',
'OQLLexerException' => __DIR__ . '/../..' . '/core/oql/oql-lexer.php',
'OQLLexerRaw' => __DIR__ . '/../..' . '/core/oql/oql-lexer.php',