[Catalyst] Profiling shows Catalyst::Engine::write slowest ?

Stef Telford stef at ummon.com
Thu Aug 7 00:19:36 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Everyone,
    So, I have an application almost done and dusted, although the
pages are slow. I mean 'multiple seconds' per page slow. So, with this
in mind, I flung catalyst through Devel::DProf (which is an old
mainstay) on the script running (./script/myapp_server) and I find
that the two most common 'slow-downs' are ;

%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 0.00   4.380  4.380    130   0.0337 0.0337  Catalyst::Engine::write
 0.00   2.090  2.090    318   0.0066 0.0066  DBD::Pg::db::_login

    The question arises, how on earth do I fix/improve these ? From
what I assume (dangerous I know), the catalyst engine write is the
output from the templating write, how can I improve that speed ? I am
using fastcgi on the 'main server' but it's still "as slow". Also the
DBD::Pg login could be 'pooled', although I use dbix::class(::schema),
has anyone done this ?

    I am kinda scratching my head on this, any
pointers/help/ideas/smacking with manual is appreciated :D
    Regards
    Stef
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImjGHANG7uQ+9D9URAp4XAJ0QCpPXumfhIkH+HrqkanW8/XzNgACeLXX5
lF1L0/TWDQFY/W4smNVEIw8=
=jiKu
-----END PGP SIGNATURE-----




More information about the Catalyst mailing list