I have a symfony2 application that renders about 6000 database entities.
I optimized the ORM (propel) queries and the database requests are now very fast. What remains is the symfony controller and the twig template rendering engine.
Is there a way to speed up rendering (e.g. switching to php templates?) Can I get more detailed profiling information than from the symfony profiler?
Here's an excerpt from the profiler data.

Edit: I profiled my code using xDebug and found that generating the objects is very expensive. Creating thousands of PHP objects from database rows in PropelObjectFormater->getAllObjectsFromRow takes most of the time.

The image shows the branch that takes up 95% of the computing time, which is ~2.8 seconds. The database retrieval takes ~0.5 seconds, the rendering ~1 second and formatting takes the most time with ~1.5 seconds.
I'm not sure what impact the length of the file containing the PHP class has, but Propel generates a lot of code (my most complex entity base class has almost 10k lines of code) so this might slow down object creation as well.
I think using an array formatter (thus bypassing the object creation step) would be a solution, but that somewhat defeats the purpose of the ORM.