Published by Fabian on 13 Oct 2007 at 01:06 pm
Better Performance patch for Symfony 1.0.x and Propel 1.2
Eric made a valid point in his comment that you could remove all includes due to symfony autoloading.
I found the sfBuilders that are responsible for stripping the comments from the generated propel classes and also saw that there is a addIncludes parameter in propel.ini. Lets reuse that and modify the Builders to strip the inline includes and requires.
I admit this is a tiny step, but some propel users are desperately searching for performance tweaks (as I am as well) so I hope this could be of use. I send this patch for inclusion in symfony 1.1, Noël told me that it will not become part of 1.0.x .
So if you want to patch your symfony 1.0.x yourself. here is the diff: propel_includes_10.patch
Enjoy
developercast.com » Fabian’s Blog: Better Performance patch for Symfony 1.0.x and Propel 1.2 on 16 Oct 2007 at 12:24 am #
[...] a new entry to his blog, Fabian has posted a patch he’s developed help get things running faster with [...]
Bert-Jan on 10 Jan 2008 at 11:42 pm #
This has been fixed in Propel 1.3. If you set addIncludes to false there won’t be a single one in the Propel generated classes anymore and Symfony can fully take over.