Frank de Jonge: Battle Log: Symfony Routing performance considerations.

In a new post to his site Frank de Jonge shares his "battle log" when looking into routing performance considerations in Symfony after a "deep dive" into the component’s code.

Last week I took a deep dive into Symfony’s Routing Component. A project I worked on suffered from a huge performance penalty caused by a routing mistake. This lead me on the path to discovering some interesting performance considerations. Some common practices align nicely with Symfony’s optimisations, let’s look into those.

He starts off by describing the process he took to start the investigation and what prompted him to investigate the performance issue. He talks about his use of profiling to locate the bottleneck and track down the root cause. He answers the five "why’s" about the issue and uses that to guide an approach. Ultimately he located the source of the issue – YAML parsing that shouldn’t have been needed – and what the component does to make it more performant in non-development environments. He ends the post with a list of four performance considerations as you’re going through your own development to get the most out of the component.

You may also like...