[TYPO3-core] RFC: Performance enhancements in BE, part 1
Dmitry Dulepov
dmitry at typo3.org
Mon Jul 9 13:25:50 CEST 2007
Hi!
Michael Stucki wrote:
> Generally, makes sense! What I dislike is this:
>
> + $tca = &$TCA[$table];
> + if (!$tca['columns']) {
This tests if TCA is loaded, so we cannot get rid of this.
> + $dcf = $tca['ctrl']['dynamicConfigFile'];
>
> Get rid off $tca and apply the reference on $dcf instead.
Yes, because PHP is bad at handling inner arrays. Though it uses hash
maps for it, it is still slower then references because it resolves hash
every time when nested array is used.
> (...or was this the reason why it became faster?)
Yes, one of them.
--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
More information about the TYPO3-team-core
mailing list