Hi,
On Aug 17, 2007, at 2:46 PM, Matt S Trout wrote:
On Fri, Aug 17, 2007 at 01:27:15PM +0100, Pedro Melo wrote:
time perl -MSchema -e 1
gives:
real 0m19.851s
user 0m18.674s
sys 0m0.195s
For production, given that restarts are not common, this is
acceptable. For development, this is a pain.
I'm using latest DBIC, Class::C3 and C:C3::XS.
I'm considering using bleadperl for most developments to take
advantage of the even greater speedups, but then I have to do a round
of testing with the production perl.
Apart from those, is there any secret formula to speed up the startup
time?
use base qw(DBIx::Class::Core);
instead of load_components'ing it.
Similarly, if you have common other components do the
load_components once
in a base class and then use base it from the table classes.
I'll try this. They make a lot of sense.
Also, make load_classes explicit rather than relying on
Module::Find (or get
a faster disk :)
hmms... its mostly user time as you can see, so you are not waiting
that much on the disk. And it should be mostly in the cache...
Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: [EMAIL PROTECTED]
Use XMPP!
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]