Issue Bug Closed

#59449Unnecessary instantiation of object in contentObjectRender

Tomas Norre Mikkelsen 06/10/14, 14:59 updated 10/02/18, 11:56

Description

Classes implementing this hook:
TYPO3_CONF_VARS[‘SC_OPTIONS’][‘tslib/class.tslib_content.php’][‘cObjTypeAndClass’]

are instantiated everytime contentObjectRender is created, even if they are not needed.

They should be lazy loaded.

In an example project we had 6660 calls, and after we only had 1221 calls, which is quite an improvement.

The core EXT:form used this hook intensively, even if you don’t have the form setup on a page, it’s still slows down the page.

Reviews 1