[TYPO3-core] RFC #10511: simplify and speed up t3lib_div::trimExplode()
Peter Foerger
pfoerger at gmail.com
Wed Feb 25 09:48:10 CET 2009
Hi Ingo,
Ingo Renner schrieb:
>
> 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.
+1 by testing
>
> speed improvements with this version:
> 10-25% when removing empty elements
> 25-40% when keeping empty elements
my benchmarks results have been appropriate, while testing on a rather
large string (> 6500 chars)
>
> There will be another little boost when fixing the behavior of $limit,
> but that's a different issue.
looking forward to that patch
cheers
Peter
More information about the TYPO3-team-core
mailing list