Bug #62740

Add check on literal in TypeHandlingUtility::isCollectionType

Added by Arjen Hoekema almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Utility
Target version:
-
Start date:
2014-11-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:
no-brainer

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'.

#1

Updated by Arjen Hoekema almost 7 years 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