Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).

Discover the SensioLabs Support

Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony

Fabien Potencier
Symfony 2.1.0 beta4 released
by Fabien Potencier – July 23, 2012 – 13 comments

Just before the release of the first RC, we'd like to give you a beta4. This release is mainly about form performance enhancements.

A few days before the release of beta3, Denis Chmel contacted us with questions about the Form framework performance. He provided an executable testbed that helped to reproduce his issue and served as base and measurement for the performance improvements.

Bernhard worked on improving this use case where the form has many fields. The total page rendering was divided by three on Denis' server. On Bernhard's machine, the form processing and rendering time was divided by 6 for PHP templates and by 3 for Twig. These numbers are quite impressive.

We'd like to thank Denis as he gave us a great real-world testbed. If you can isolate performance problems, try to provide executable testbeds; this helps us to fix these problems faster.

If you have already upgraded to beta3, have a look at the changes you need to make to upgrade to beta4.

If you have not tried to upgrade yet, first read the UPGRADE file that comes with Symfony Standard Edition, then the UPGRADE file that comes with Symfony.

Comments RSS

  • Peter Kokot
    #1 Peter Kokot said on the 2012/07/23 at 20:02
    Great, thank you.
  • Lukas Kahwe Smith
    #2 Lukas Kahwe Smith said on the 2012/07/23 at 20:43
    indeed .. any tricky bug or missing feature for which it is too hard to write up a test case can best be illustrated by just forking the SE .. adding whatever is causing the issue or illustrating the limitation.
  • Tobias Schultze
    #3 Tobias Schultze said on the 2012/07/23 at 20:56
    After upgrading from Beta3 to Beta4, the total time to display a quite complex form of mine (177 fields) only decreased by approx. 6%.
    And memory usage increased by 500KB. This could of course be influenced by changes in other libraries updated with Beta4.
  • Tobias Schultze
    #4 Tobias Schultze said on the 2012/07/23 at 21:12
    I have to add to my previous comment, that the form rendering takes approx. 150 ms more than basically the same page (with same data etc.) without using forms. So in this regard, these 6% are not so bad and there is not that much optimization potential left.
    Btw, the form page needs almost twice as much memory (10BMB) compared to the form-less page.
  • Daniel Maldonado
    #5 Daniel Maldonado said on the 2012/07/24 at 01:56
    Excelente! cada día más cerca de la versión final.
  • Muhammadali Shaduli
    #6 Muhammadali Shaduli said on the 2012/07/24 at 03:19
    Great... Waiting for the release
  • Luis Cordova
    #7 Luis Cordova said on the 2012/07/24 at 09:02
    good approach lsmith
  • Adel ELHAIBA
    #8 Adel ELHAIBA said on the 2012/07/24 at 16:41
    Nice Improvement
  • Bernhard Schussek
    #9 Bernhard Schussek said on the 2012/07/26 at 07:51
    @Tobias: The reason for this could be that the first batch of the improvements were already part of Beta3.
  • Ivan Chirinos
    #10 Ivan Chirinos said on the 2012/07/26 at 19:58
    how can i upgrade from beta3 to beta4. I installed symfony using composer.phar....pls help me
  • Christian Jennewein
    #11 Christian Jennewein said on the 2012/07/31 at 18:12
    I also wonder how to update from BETA3 to BETA4, a simple php composer.phar install gives me the following:


    Unrecognized options "strict_parameters" under "framework.router"

    Looks similar to issue ... am I the only one hitting this?
  • Christian Jennewein
    #12 Christian Jennewein said on the 2012/07/31 at 18:15
    By the way: commenting out the strict_parameters in config.yml solves the issue, but I'd rather wait for some official hints.
  • Chris Sedlmayr
    #13 Chris Sedlmayr said on the 2012/08/01 at 19:05
    Hi Christian,
    That issue appears present with the latest change to the composer files.
    Using the ones before the most recent change seems to work but i'm not sure why.
    Hopefully someone that made the change can give more help?