Does many packages immerse into the overall performance of a Symfony2 application?

I was wondering how to load many packages into appkernel (say 300+), and their routing information affects the overall application performance / STRONG>

Look at this as conditional loading of packages for the interface and backend (providing some of them is really necessary for only one environment) - is it worth it?

I know that it can be difficult to answer without testing it in a real-world scenario, but maybe someone has studied the internals of sf2 enough to tell what the scale of the problem is when adding a lot of packets and their routing configurations.

+6
source share
2 answers

I am not an expert in Sf2, but I know that it compiles configurations into PHP code. So, if you fix everything (for example, do not download the package when sf2 loads), they will be dumped into php code, which will also be cached.

Hi,

+1
source

It should not, if it was designed correctly, no. Library paths, etc. Should be cached (APC, on disk, etc.), but this should not affect performance. IF so, switch to lithium ( http://li3.me ) ha. But seriously, you can tell using something like xdebug with webgrind or something like that.

+1
source

Source: https://habr.com/ru/post/899692/


All Articles