[TYPO3-core] RFC: Feature #2883 / t3lib_div::trimExplode
oh at inpublica.de
Fri Aug 17 11:16:37 CEST 2007
Martin Kutschker schrieb:
> Martin Kutschker schrieb:
>> Wolfgang Klinger schrieb:
>>> Patch request / trunk
>>> Bugtracker: http://bugs.typo3.org/view.php?id=2883
>>> I tested it again and measured the difference with XDebug,
>>> it's still faster and there's no difference in the results
>>> Please test with the code given in the
>>> latest comment here: http://bugs.typo3.org/view.php?id=2883
>> Please add this to the test (requires PHP5):
>> My tests showed that it's a fraction faster :-)
> There is a unit test in the bug report so it's quite easy to test.
+1 on testing the patch. Using references is faster.
I tried to improve this also by using a single-line regular expression -
it was faster than the array_map() but slower than Masi's approach.
More information about the TYPO3-team-core