[TYPO3-core] RFC #13681: Improve performance of t3lib_div::revExplode
Nikolas Hagelstein
nikolas.hagelstein at googlemail.com
Fri Feb 26 13:41:05 CET 2010
This is an SVN patch request.
Type: Code cleanup
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.
Cheers,
NIkolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_div_explodeRev.patch
Type: application/octet-stream
Size: 506 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100226/1c52c7b0/attachment.obj>
More information about the TYPO3-team-core
mailing list