Cover of the book Symfony 5: The Fast Track

Symfony 5: The Fast Track is the best book to learn modern Symfony development, from zero to production. +300 pages in full color showing how to combine Symfony with Docker, APIs, queues & async tasks, Webpack, Single-Page Applications, etc.

Buy printed version

New in Symfony 4.3: Improved performance of PropertyAccess

Contributed by
Christian Flothmann
in #29999.

The PropertyAccess component allows to read/write properties from objects and arrays using a simple string notation. It's used by Symfony components like Forms, Security, Validator, Workflow and hundreds of other public projects.

In Symfony 4.3 we improved its performance refactoring the code of the getValue() and setValue() methods. The trick was to add some shortcuts for cases where we know that we do not need to perform all checks.

Saving so many function calls in such a critical operation results in a 20% to 30% performance improvement for a non-trivial synthetic benchmark. You can expect even better improvements if your app deals with large objects and complex property paths.

Best of all? You don't need to make any change in your application code to benefit from this improvement. Upgrade to Symfony 4.3 when it's released at the end of May 2019 and that's all.

New in Symfony 4.3: Improved performance of PropertyAccess

Tweet this


Good example of Blackfire power to improve code.
Thank you 👌🏻👍🏻
Great works

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.