[TYPO3-core] RFC Feature #16189: Optimize stdWrap usage for TypoScript content element CLEARGIF
JoH asenau
info at cybercraft.de
Mon Nov 1 00:29:25 CET 2010
> Well - as with the ternary operators, for me the major point is not
> readability for developers but performance.
> So, if it's faster, I will change it - if not, I would like to get
> some other opinions, since I would prefer just changing the "layout"
> of the code to improve the readability then.
Of course I would still go for better readability, when it's as fast as the original code.
> So are there any reliable sources for benchmarks of sprintf and
> ternary operators vs. if/else?
So far it seems there is no big difference between ternary operators and if/else but sprintf is a no go since compared to string concatenation it is much slower. I will try to come up with a v2 that uses another layout to improve readability.
> Abyway, thx for your feedback.
Should have been "anyway" - so it seems that my string concatenation doesn't perform too well late at night ;-)
Cheers
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-team-core
mailing list