[TYPO3-core] RFC #16951: [Performance] Speed up makeInstance() by caching getClassName() results

Christian Kuhn lolli at schwarzbu.ch
Sun Jan 9 14:38:24 CET 2011


Hey.

On 01/09/2011 02:28 PM, Steffen Gebert wrote:
>> Problem:
>> Every makeInstance() call determines the final class name by checking in
>> getClassName() with class_exists() for 'ux_' classes.
>
> +1 by reading and testing, although I prefer to have the cache in
> getClassName(), but I'm also fine with this.

Thanks. Reason: getClassName() is recursive, I didn't wanted to do it 
there because of that. The method is protected anyway and only called by 
makeInstance().


> I expect it to have more effect on bigger sites.

Yes, me too.

Regards
Christian


More information about the TYPO3-team-core mailing list