use profiling without debug check because of improved performance

This commit is contained in:
Daniel Seifert 2024-05-26 00:15:19 +02:00
parent 5bf406e06a
commit 3368873774
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170

View File

@ -152,9 +152,7 @@ class d3DicHandler implements d3DicHandlerInterface
*/ */
public function buildContainer(bool $compileAndDump = true): Container public function buildContainer(bool $compileAndDump = true): Container
{ {
if (Registry::get(ConfigFile::class)->getVar('iDebug')) { startProfile(__METHOD__);
startProfile(__METHOD__);
}
if ($this->d3UseCachedContainer()) { if ($this->d3UseCachedContainer()) {
$container = $this->d3GetCacheContainer(); $container = $this->d3GetCacheContainer();
@ -172,9 +170,7 @@ class d3DicHandler implements d3DicHandlerInterface
} }
} }
if (Registry::get(ConfigFile::class)->getVar('iDebug')) { stopProfile(__METHOD__);
stopProfile(__METHOD__);
}
return $container; return $container;
} }