From 33688737749fed0490b597998789003256be4b2f Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Sun, 26 May 2024 00:15:19 +0200 Subject: [PATCH] use profiling without debug check because of improved performance --- d3DicHandler.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/d3DicHandler.php b/d3DicHandler.php index 7024f12..66b7646 100644 --- a/d3DicHandler.php +++ b/d3DicHandler.php @@ -152,9 +152,7 @@ class d3DicHandler implements d3DicHandlerInterface */ public function buildContainer(bool $compileAndDump = true): Container { - if (Registry::get(ConfigFile::class)->getVar('iDebug')) { - startProfile(__METHOD__); - } + startProfile(__METHOD__); if ($this->d3UseCachedContainer()) { $container = $this->d3GetCacheContainer(); @@ -172,9 +170,7 @@ class d3DicHandler implements d3DicHandlerInterface } } - if (Registry::get(ConfigFile::class)->getVar('iDebug')) { - stopProfile(__METHOD__); - } + stopProfile(__METHOD__); return $container; }