DBIx::Class, Catalyst and Moose Load Time

Ovid on 2009-08-19T15:58:46

On our system:

$ find lib -name '*.pm'|wc -l
662

Just loading the classes, prior to connecting to the database (we've verified this):

$ time perl -MPIPs -e 1
real	0m23.528s
user	0m20.149s
sys	0m0.340s

23 seconds. While Test::Aggregate makes this pain go away when running a bunch of tests, the stereotypical tweak, test, tweak, test, tweak, test development cycle sort of grinds to a halt.


Speeding DBIx::Class

jjn1056 on 2009-08-19T19:33:40

I find if I declare a base result class and load all my components into that, and then have each of my result classes inherit from that, we get much improved loading time.

Re:Speeding DBIx::Class

mj41 on 2009-08-20T08:22:05

Same for me. Example is here http://dev.taptinder.org/svn/taptinder/trunk/server/lib/TapTinder/DB/

Re:Speeding DBIx::Class

Ovid on 2009-08-20T10:19:32

That's what we already do, but I'm not doing it on my pet project, though.