RAPPAZ Francois
2014-08-08 14:49:43 UTC
Hi
I wrote an application using DBIx::Class to access data on mysql. The script work well (atlast) but the packaging with pp hangs: the "pp: Writing PAR on C:\Users\ ... " when verbose is on stay for 20 minutes, whereas the same application using sql and DBI is packed in a few minutes.
I suspect it's because DBIC use a lot of "use base '...'" and "__PACKAGE__->load_namespaces()" commands
My script calls "use Dbc::Schema;"
which is the only call to the Dbix::Class stuff.
The Dbc/Schema.pm file is 7 lines long:
use utf8;
package Dbc::Schema;
use strict;
use warnings;
use base 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
__PACKAGE__->load_namespaces( default_resultset_class => 'ResultSet', );
My call to pp is basically
set file=cmd_dokpe_dbc
set dir=dokpe_i02_dbc
set inputfile=cmdui.pl
pp -v 3 -B -a glade -I C:\strawberry\c\bin\ @ppopts.txt -o %file%.par %inputfile%
Thanks for any advices on correcting this (I'm on w7)
François Rappaz
Centre de documentation de la Faculté des Sciences Université de Fribourg DokPe - Dokumentationszentrum der Naturwissenschaftlichen Fakultät Universität Freiburg Pérolles CH-1700 Fribourg Switzerland http://www.unifr.ch/dokpe/
Tel.: 41 (0)26 300 92 60
Fax.: 41 (0)26 300 97 30
I wrote an application using DBIx::Class to access data on mysql. The script work well (atlast) but the packaging with pp hangs: the "pp: Writing PAR on C:\Users\ ... " when verbose is on stay for 20 minutes, whereas the same application using sql and DBI is packed in a few minutes.
I suspect it's because DBIC use a lot of "use base '...'" and "__PACKAGE__->load_namespaces()" commands
My script calls "use Dbc::Schema;"
which is the only call to the Dbix::Class stuff.
The Dbc/Schema.pm file is 7 lines long:
use utf8;
package Dbc::Schema;
use strict;
use warnings;
use base 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
__PACKAGE__->load_namespaces( default_resultset_class => 'ResultSet', );
My call to pp is basically
set file=cmd_dokpe_dbc
set dir=dokpe_i02_dbc
set inputfile=cmdui.pl
pp -v 3 -B -a glade -I C:\strawberry\c\bin\ @ppopts.txt -o %file%.par %inputfile%
Thanks for any advices on correcting this (I'm on w7)
François Rappaz
Centre de documentation de la Faculté des Sciences Université de Fribourg DokPe - Dokumentationszentrum der Naturwissenschaftlichen Fakultät Universität Freiburg Pérolles CH-1700 Fribourg Switzerland http://www.unifr.ch/dokpe/
Tel.: 41 (0)26 300 92 60
Fax.: 41 (0)26 300 97 30