Bug #42723

Reflection\ObjectAccess consumes to much processing time

Added by Steffen Ritter over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Reflection
Target version:
-
Start date:
2012-11-06
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Yes
Complexity:

Description

JsonView, Validation, Serialisation and many other parts of Flow use ObjectAccess to retrieve information about how to access properties within the current object.

getAvailableGetters for example is called thousands of times, when putting an object hirarchy of 150 fuel stations with each one address and 3 opening entries (therefore 750 objects in a nested hirarchy) first into validation and than output it as JSON.

After compile (e.g. php is running) - the properties of an Object are immutable (despite stdClass). Therefore the ObjectAccess class should use a runtime cache.


Related issues

Related to TYPO3.Flow - Bug #46491: ObjectAccess::getProperty() does not work for getters in ArrayAccessResolvedBastian Waidelich2013-03-21

Actions

Also available in: Atom PDF