This ended up being a weird issue. It was caused by the autoloadAgain()
methid being triggered every single time a behavior is loaded in a Doctrine
model. Fabien has a fix to ensure autoloadAgain() is only called once per
request, but I made a changeset to Doctrine which changes the order in which
it tries to find the behavior template.

http://trac.phpdoctrine.org/changeset/4316

^^^ That is the changeset that fixes it.

- Jon

On Wed, Apr 30, 2008 at 12:45 PM, Fabien POTENCIER <
[EMAIL PROTECTED]> wrote:

>
> I know what's going on here. It's a problem with the symfony autoloading
> (and more specifically the autoload again feature).
>
> I will have a closer look at this tonight.
>
> Fabien
>
> --
> Fabien Potencier
> Sensio CEO - symfony lead developer
> sensiolabs.com | symfony-project.com | aide-de-camp.org
> Tél: +33 1 40 99 80 80
>
>
> Jonathan Wage wrote:
> > Fabien,
> >
> > I am not able to produce the extreme slowness in a stripped down test
> > case. I have come to the conclusion that it is not one thing that causes
> > the slowness, but a sum of things. In my web application if I slowly
> > strip out pieces of functionality which query for Doctrine objects, the
> > speed increases. As soon as I do not have any doctrine objects present,
> > the execution is as expected.
> >
> > The best I can offer is the source of the whole doctrine website so you
> > can see this.
> >
> > http://lamp5.centresource.com/jwage/testcase.zip
> >
> > In the root you will find a doctrine.sql file that will populate the
> > database. You will have to configure config/database.yml too.
> >
> > You can see the slowness by simply just executing the frontend_dev.php
> >
> > - Jon
> >
> > On Wed, Apr 30, 2008 at 8:58 AM, Jonathan Wage <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     It's not. I will create a stripped down test case/sandbox and send
> >     it your way fabien. Expect it soon.
> >
> >     - Jon
> >
> >
> >     On Wed, Apr 30, 2008 at 6:24 AM, Ian P. Christian
> >     <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >
> >         Fabien POTENCIER wrote:
> >          > Ian, Jon,
> >          >
> >          > Can you send me a sandbox with just the needed code to be
> able to
> >          > reproduce this behavior as I don't seem to be able to
> >         reproduce it on my
> >          > projects.
> >          >
> >
> >         Jon/Fabien - if this is on my server, I'm obviously more then
> >         happy to
> >         give Fabien SSH access should that make things easier, just give
> >         me a
> >         poke :)
> >
> >
> >
> >
> >
> >     --
> >     Jonathan Wage
> >     http://www.jwage.com
> >     http://www.centresource.com
> >
> >
> >
> >
> > --
> > Jonathan Wage
> > http://www.jwage.com
> > http://www.centresource.com
> > >
>
>
> >
>


-- 
Jonathan Wage
http://www.jwage.com
http://www.centresource.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to