Feature #478

More speed for object creation

Added by Axel over 7 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2008-04-24
Priority:Should have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:Object
Target version:-
PHP Version: Complexity:
Has patch:

Description

I attached the file F3_FLOW3_Component_ObjectBuilder.php with some changes in the methods createComponentObject and injectConstructorArguments.

The objectcreation with eval() is a litte bit slow and i changed this to ReflectionClass::newInstance. This results in a 17% better performance (testet with ApacheBench on the TestPackage) and a more readable injectConstructorArguments - method.
All seems to work fine, but i was not able to run the testcase yet(PHPUnit crashes my apache). Perhabs someone else can test that.

(I'm sorry about my bad english)

F3_FLOW3_Component_ObjectBuilder.php Magnifier (14 kB) Axel , 2008-04-24 08:45

Associated revisions

Revision 4d9ddfe8
Added by Robert Lemke about 7 years ago

  • FLOW3: (Component) Improved the performance of the component object builder, resolves #478. Thanks to Axel for the suggestion.
  • Removed the index*.php files from the main directory - the ones in the Public/ dir should be used.

Revision 5ebef333
Added by Robert Lemke about 7 years ago

  • FLOW3: (Component) Improved the performance of the component object builder, resolves #478. Thanks to Axel for the suggestion.
  • Removed the index*.php files from the main directory - the ones in the Public/ dir should be used.

History

#1 Updated by Robert Lemke about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r866.

Also available in: Atom PDF