Me again...

I'm finding that the CAF Example application is pretty slow on my AMD 500 Mhz testing system. Every request takes at least 3 seconds, presumably because perl has to launch, then load, parse, execute, run etc tons of packages.

When I run the examples under Apache::Registry, they are much much faster. Deleting users via Example_5 seems to hang though... firefox sits and spins. Log files aren't doing anything exciting and CPU usage looks normal on the server.

Is anybody using CAF in production, or is it really alpha quality? It seems to have so much potential... How do you handle performance? I'm wondering if I should stick to CGI::Application + Class::DBI + Template::Toolkit for now...


Apache configuration for Apache::Registry:

# BEGIN append to httpd.conf
Alias       /caf-examples /usr/local/caf/htdocs/caf-examples
Alias /cgi-bin/ /usr/local/caf/cgi-bin/
PerlModule Apache::Registry
PerlRequire startup.pl

<Location /cgi-bin>
       SetHandler perl-script
       PerlHandler Apache::Registry
       Options ExecCGI
</Location>
# END

startup.pl:
#!/usr/bin/perl -w
use strict;
use Apache::Registry;
use CGI::Application::Framework;
use CGI::Carp 'fatalsToBrowser';
use Carp::Heavy;
use Data::Dumper;
use Class::DBI::Loader;
use Regexp::Common;
# could add more heavy modules here later...
1;
# EOF

Wim
_______________________________________________
caf mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/caf

Reply via email to