[TYPO3-core] RFC #11581: Small speed improvement in class.t3lib_tstemplate.php

Rupert Germann rupi at gmx.li
Thu Jul 30 22:16:19 CEST 2009


hi Dan,

+1 by reading, testing and profiling

I tested it with my tt_news 3.0 optionplit show-off page, result: 
everything works as before.

calling $GLOBALS['TSFE']->tmpl->splitConfArray() 500 times in a loop 
with a nested array results in ~5% faster execution.

greets
rupert



Dan Osipov schrieb:
> This is an SVN patch request.
> 
> Type: Feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11581
> 
> Branch: Trunk
> 
> In function splitConfArray, the passed array is transversed twice, once 
> to pickout all elements that are arrays, and the second time to pickout 
> all non array elements. This is not the most efficient way.
> 
> Solution:
> A better solution is to transverse the array just once, and do 
> everything in one loop.
> 


More information about the TYPO3-team-core mailing list