Same for me,
a way to disable autoload again would be very nice
or should sfDoctrine extends the autoloader if possible and try to not
autoload again any doctrine classes
regards
tobi
On Jun 11, 12:27 pm, Tamcy <[EMAIL PROTECTED]> wrote:
> Hi devs,
>
> Today I started converting my project to symfony 1.1 in favor of the
> customization goodies (I need sfNoRouting) which drives me into speed
> nightmare. In dev environment, every request costs 15 seconds which is
> totally unacceptable.
>
> I found this is caused by the behavior of Doctrine library.
>
> When you execute "Doctrine::getTable('Foo');". Doctrine will first
> attempt to search for "FooTable" and if it doesn't exist it returns a
> generic "Doctine_Table" class. This is good, as we need not flood the
> directory with empty *Table files. But no good anymore in sf1.1
> because if "FooTable" doesn't exist, symfony will autoload again!
>
> As $freshCache will be set to false (sfAutoload.class.php:105) after
> every reload, the more *Table you attempt to retrieve, the more class
> reloading occrus. This results in terrible performance.
>
> I now create *Table for every model to prevent re-autoloading.
>
> But I think this is a problem need to be fixed, and of course I don't
> want Doctrine to change its behavior to force a table class for every
> model. Is there a way to fix this, or work around? For example, allow
> developers to disable class reload in configuration?
>
> Thanks.
>
> Tamcy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---