[TYPO3-core] RFC: Remove empty label tags
Karsten Dambekalns
karsten at typo3.org
Thu Jan 12 08:46:54 CET 2006
Hi.
On Wednesday 11 January 2006 20:31, Wolfgang Klinger wrote:
> in a loop of 100 comparisons with the two above expressions the
> in_array calls require 0.002166 seconds, while the preg_match calls finish
> in only 0.001912 seconds. :-)
Ok, so it's more expensive to construct the array, than to compile the regular
expression. Interesting.
Thanks for benchmarking! :)
> go for it!
Yep.
Karsten
PS: What about
!stristr('radio,label,hidden,comment', $confData['type']))
Somewhat a hack, but... :)
--
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
More information about the TYPO3-team-core
mailing list