Bug #62740

Add check on literal in TypeHandlingUtility::isCollectionType

Added by Arjen Hoekema 9 months ago. Updated 9 months ago.

Status:New Start date:2014-11-06
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Utility
Target version:-
PHP Version: Complexity:no-brainer
Has patch:No Affected Flow version:(any)

Description

Add a check to 'isLiteral' before doing expensive 'class_exists' operations trying to resolve objects for literals like: string, int, etc.

Maybe the ValidatorResolver could also do a check on a 'literal' before doing a 'class_exists' in 'buildBaseValidatorConjunction'.

History

#1 Updated by Arjen Hoekema 9 months ago

The 'class_exists' performance problem is likely only an issue when you're not running in 'Production' context (especially in TYPO3 6.2/Extbase). The class loading cache information is not cached in 'Development' context. But several other autoloaders (from Composer packages) could be triggered to resolve classes for literal/primitive types.

Also available in: Atom PDF