php - Symfony RouteCollection caching - CsrfRouteBundle issue? -


today have identified bottleneck in symfony application. problem symfony calls doctrine\common\annotations\cachedreader::getmethodannotations() on 4000 times (for every request, in production mode).

i looked @ callstack , these calls result of symfony\component\routing\loader\yamlfileloader::load() called symfony\bundle\frameworkbundle\routing::getroutecollection(). seems core issue - seems routecollection not cached.

after research found this comment @stof saying routecollection should not used @ runtime.

the runtime usage of routecollection done csrfroutebundle. precise it's used here , here. mean approach used bundle wrong? in case solution use csrf in symfony?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -