[TYPO3-core] RFC: Feature #2883 / t3lib_div::trimExplode

Oliver Hader oh at inpublica.de
Fri Aug 17 11:16:37 CEST 2007


Hi Masi,

Martin Kutschker schrieb:
> Martin Kutschker schrieb:
>> Wolfgang Klinger schrieb:
>>>
>>> *hiya!*
>>>
>>> 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
>>> anymore.
>>>
>>> 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):
>>
>>  [snip]
>>
>> 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.
> 
> Masi

+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.


olly
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list