[TYPO3-core] RFC #11606: [Feature]: Add a RANDOM cObject

Dmitry Dulepov dmitry.dulepov at gmail.com
Sat Aug 1 19:19:13 CEST 2009


Hi!

Rupert Germann wrote:
> I don't think so.

Don't think, look at the code of COA and see what it does.

> come on, how often would such a RANDOM thingy be used on a page?
> and "random" will always degrade performance so much that the extra
> rendering time for this tiny little extra COA_INT will not be measurable.
> seriously! ;)

A bit here, a bit there... If you are serious about performance, you should look to every opportunity to speed up the code. COA calls cObjGet, which also make a lot of calls to $GLOBALS['TT'], which is slow. In addition there is a lot of other PHP code executed. Why do you want this to happen if that RANDOM could become non–cached with just extra 5 lines of PHP code. There will be no need for slow $GLOBALS['TT'] and even for cObjGet.

I do not accept "come on" in such cases. Either do it well, or do not do it at all.

-- 
Dmitry Dulepov
LinkedIn: http://www.linkedin.com/in/dmitrydulepov
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs


More information about the TYPO3-team-core mailing list