[TYPO3-core] RFC: #13675: Use array_map() for t3lib_div::intExplode
Georg Ringer
mail at ringerge.org
Fri Feb 26 08:38:55 CET 2010
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13675-intExplode.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100226/909ebaf9/attachment.txt>
More information about the TYPO3-team-core
mailing list