[TYPO3-core] RFC: #13675: Use array_map() for t3lib_div::intExplode
Steffen Ritter
info at rs-websystems.de
Fri Feb 26 12:17:40 CET 2010
Georg Ringer schrieb:
> Hey,
>
> this is a SVN patch request.
>
> Type: performance tuning
>
> Branch: trunk, 4.3,4.2
>
> BT reference: http://bugs.typo3.org/view.php?id=13675
>
> Problem:
> t3lib_div::intExplode can be a lot faster by using array_map instead of
> a foreach and using a reference.
>
> It needs about a third of the time in the given testcase
>
> Solution:
> Use array_map('intval', $temp);
>
> Additional information:
> - Thanks to Nikolas Hagelstein, how brought up the idea
>
> - A simple testcase is in the bugtracker
>
> Georg
>
+1 reading
it's obvious :)
More information about the TYPO3-team-core
mailing list