[TYPO3-mvc] Page Loading Problems With 3rd Party Extension

Daniel Ceballos Tejero | basecom GmbH & Co. KG ceballos at basecom.de
Thu Mar 14 15:48:04 CET 2013


Hello Guys,

problem's still there. Anyone knows something about this Issue? Next step would be to talk to the ext developers.

Regards

Daniel

Am 08.03.2013 um 13:41 schrieb Daniel Ceballos Tejero | basecom GmbH & Co. KG <ceballos at basecom.de>:

> Hello List,
> 
> i've programmed an extension which has a list action in a controller. In this list view there is  a for each loop, in this loop i'm using a viewhelper which loops an object storage to get one of it's entities and therefor one property. The output is okay, but the loading time is very long. On my win system, a call of a page lasts 4 minutes to get a list with 6 Records. The view helper is called several times (>10 times , <15 times) in one loop.  
> 
> I thought the way of having this big structure of an mvc in the background causing this big trouble. So i have done some checks. At least i create a XDebug Profile which i have analyzed with kcachegrind. 
> 
> So i came through the 3rd party extension "formhandler" which i use ever since to create my forms. The formhandler Extension calls Tx_Formhandler_Component_Manager->getPackagePath 66.000 times an takes 99.2% of the script rendering time. 
> 
> --- script ---
> 	protected function getPackagePath($packageKey) {
> 		if (strpos($packageKey, '/') === FALSE && t3lib_extMgm::isLoaded(strtolower($packageKey))) {
> 			$path = t3lib_extMgm::extPath(strtolower($packageKey));
> 		} else {
> 			$path = t3lib_div::getFileAbsFileName($packageKey);
> 			if (substr($path,strlen($path) -1) !== '/') {
> 				$path .= '/';
> 			}
> 		}
> 
> 		return $path;
> 	}
> --- script end ---
> 
> When i deactivate formhandler on the same page where my extension list action is, the page need 1 second to render its content. The other way around (deactivating my plugin and activating form handler) the page need 1 second to render also.
> 
> Two kcachegrind screenshots
> Formhandler activated: http://tinypic.com/r/2923es0/6
> Formhandler deactivated: http://tinypic.com/r/2r2ry2w/6
> 
> Thanks you guys.
> 
> Regards
> 
> Daniel
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list