[TYPO3-core] RFC #12666: Copying Record with TCEMain process cmdmap throws sql errors

Tolleiv.Nietsch info at tolleiv.de
Thu Nov 19 08:08:54 CET 2009


Francois Suter schrieb:
> 
> Just a question after a quick read: any idea what the performance cost of:
> 
> array_key_exists('languageField', $GLOBALS['TCA'][$table]['ctrl'])
> 
> is, against just using:
> 
> isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])
> 

Hi,
just did a really short test and array_key_exists() was 5-10 times 
slower than isset(). Depending on wether the variable / key was existing 
or not... That correlates to the numbers on http://phpbench.com/ - he 
doesn't compare them directly but he also shows that array-functions 
tend to be slower.


Cheers,
Tolleiv


-- 
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de


More information about the TYPO3-team-core mailing list