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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -