[TYPO3-core] RFC #13681: Improve performance of t3lib_div::revExplode
Christian Kuhn
lolli at schwarzbu.ch
Fri Mar 26 12:53:20 CET 2010
* Committed v4 to:
trunk rev. 7170
TYPO3-4.3 rev. 7172
* Committed testcase to:
trunk rev. 7171
Thanks
Christian
Nikolas Hagelstein wrote:
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13681
>
> Branches:
> TYPO3_4_3 & TRUNK
>
> Problem:
> The function use a foreach loop for a simple strrev.
>
> Solution:
> Replace foreach by array_walk.
>
> Notes:
> Using array_walk instead of loops for simple operations is
> significantly faster. Furthermore there is no need to use temp
> variables since array_walk directly manipuplates the given array - in
> contrast to array_map.
More information about the TYPO3-team-core
mailing list