Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Autoloading nightmare with Doctrine
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tamcy  
View profile  
 More options Jun 11 2008, 6:27 am
From: Tamcy <7am.onl...@gmail.com>
Date: Wed, 11 Jun 2008 03:27:39 -0700 (PDT)
Local: Wed, Jun 11 2008 6:27 am
Subject: [sf1.1] Autoloading nightmare with Doctrine
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tobi  
View profile  
 More options Jun 13 2008, 8:17 am
From: tobi <tobi.stan...@gmail.com>
Date: Fri, 13 Jun 2008 05:17:15 -0700 (PDT)
Local: Fri, Jun 13 2008 8:17 am
Subject: Re: Autoloading nightmare with Doctrine
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 <7am.onl...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Dorgueil (hartym)  
View profile  
 More options Jun 14 2008, 6:40 pm
From: "Romain Dorgueil (hartym)" <har...@dakrazy.net>
Date: Sat, 14 Jun 2008 15:40:50 -0700 (PDT)
Local: Sat, Jun 14 2008 6:40 pm
Subject: Re: Autoloading nightmare with Doctrine
There was already a discussion about this, you can read it there:
http://groups.google.com/group/symfony-devs/browse_thread/thread/175a...

I thought this was fixed, please read it and tell if it resolves your
problem.

Romain


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tobi  
View profile  
 More options Jun 15 2008, 7:22 am
From: tobi <tobi.stan...@gmail.com>
Date: Sun, 15 Jun 2008 04:22:25 -0700 (PDT)
Local: Sun, Jun 15 2008 7:22 am
Subject: Re: Autoloading nightmare with Doctrine

http://trac.symfony-project.com/changeset/8702

fixed the problem and it works at a nice speed

but
http://trac.symfony-project.com/changeset/9207
just reverts the fix :(
for some other reasons (it just say: "fixed autoload again in dev
environment" )

svn up lib/autoload/sfAutoload.class.php -r 9075

and i can use dev with doctrine again

@fabien: what was the reason for http://trac.symfony-project.com/changeset/9207
?

tobi

On Jun 15, 12:40 am, "Romain Dorgueil (hartym)" <har...@dakrazy.net>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tamcy  
View profile  
 More options Jun 16 2008, 7:06 am
From: Tamcy <7am.onl...@gmail.com>
Date: Mon, 16 Jun 2008 04:06:31 -0700 (PDT)
Local: Mon, Jun 16 2008 7:06 am
Subject: Re: Autoloading nightmare with Doctrine
Hi Romain,

I was aware of this thread before I decided to raise the issue.

My impression was it's related to Doctrine loading a particular
"behavior", which was already fixed by symfony and Doctrine, but was
somewhat different from what I mean.

But now I found I overlooked that Fabian mentioned the repetitive
autoloading issue which is exactly what I'm talking about.

Anyway it still happens in the latest trunk due to the "$freshCache =
false" statement, possibly due to [9207], as
mentioned by Jonathan (http://groups.google.com/group/symfony-users/
browse_thread/thread/3a905ba0c63f8d74).

Even when it is fixed, it is not optimal because re-autoloading would
always occur once per request. Clearing cache and building autoloading
files can take several seconds on my slow development machine,
which is what I want to get rid of as I hate the need to wait during
development :P

Tamcy

On Jun 15, 6:40 am, "Romain Dorgueil (hartym)" <har...@dakrazy.net>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google