symfony/symfony — pull request #4882 by bschussek (2012-07-12 17:31:03+00:00)
Title: [Form] WIP Improved performance of form building

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: **NO**
Fixes the following tickets: -
Todo: -

This PR is work in progress and up for discussion.

Before, the FormFactory had to traverse the hierarchy and calculate the default options of each FormType everytime a form was created of that type.

Now, FormTypes are wrapped within instances of a new class `LinkedFormType, which caches the parent of the type, its extensions and its default options. This is called like this out of desperation - I didn't find a better naming so far. Please help there if you can.

```php