[TYPO3-core] RFC #10511: simplify and speed up t3lib_div::trimExplode()

Ingo Renner ingo at typo3.org
Sat Feb 21 16:42:50 CET 2009


ok too bad, but I had to create a third version after noticing that the 
thing with create_function() is quite slow - slower than the foreach 
loop we had before.
Thus I returned to the foreach loop for the case that we remove empty 
elements.

speed improvements with this version:
10-25% when removing empty elements
25-40% when keeping empty elements

There will be another little boost when fixing the behavior of $limit, 
but that's a different issue.


best
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: simpler_faster_trimExplode_v3.diff
Type: text/x-diff
Size: 4740 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090221/f63da77e/attachment.diff 


More information about the TYPO3-team-core mailing list