[TYPO3-dev] Speed of $TCA array access

Steffen Müller typo3 at t3node.com
Mon Jul 15 14:45:14 CEST 2013


Hi.

On 15.07.2013 13:49 Bernhard Kraft wrote:
> 
> a) define a local variable pointing to $GLOBALS['TCA'][$table]['ctrl']
> and accessing subproperties of it.
> 
> b) access $GLOBALS['TCA'][$table]['ctrl'] subproperties all the time.
> 

AFAIK there's no significant difference in performance, but a big
difference in readability.

"We should forget about small efficiencies, say about 97% of the time:
premature optimization is the root of all evil." (Donald Knuth [1])

[1] http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pdf

-- 
cheers,
Steffen

Active Contributor TYPO3 CMS

TYPO3 Blog: http://www.t3node.com/
Twitter: @t3node - http://twitter.com/t3node



More information about the TYPO3-dev mailing list