List Info

Thread: RE: PerlApp Executable Size




RE: PerlApp Executable Size
country flaguser name
Canada
2007-04-03 02:17:43
On Tue, 27 Mar 2007, DePriest, Jason R. wrote:
> With AS Perl 5.6.1.638 and PDK version 6.02.203380, I
was able to
> create an executable from a perl where the .exe file
was 1,736,770
> bytes in size.
[...]
> Running the same script through new perl and perlapp
(Perl 5.8.8.820
> and PDK 7.0.0.277058) gives me a .exe file that is
2,261,076 bytes.
>
> That is a 23% file size increase for the exact same
perl script.
>
> What can I do to reduce the file size without breaking
it? Is there an
> easy way to know if --trim-implicit will cause problems
or not? Why is
> the size so different from the previous version?

Perl 5.8 is generally bigger than Perl 5.6, mostly due to
much improved
Unicode support.

You may want to compare the output from `perlapp --verbose`
from Perl 5.6
and PDK 6 vs. Perl 5.8 and PDK 7 to see if there are any
additional modules
that you cannot explain.  Feel free to send the output to me
and/or this
list so we can see if the default behavior of PDK 7 can be
improved.

Cheers,
-Jan

_______________________________________________
PDK mailing list
PDKlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: PerlApp Executable Size
user name
2007-04-03 12:16:49
I'd love to send the verbose output from PDK 6 + Perl 5.6 vs
PDK 7 + Perl 5.8.

It will probably be a few days before I can set up the
previous
environment again, though.

-Jason

On 4/3/07, Jan Dubois <jandactivestate.com> wrote:
> On Tue, 27 Mar 2007, DePriest, Jason R. wrote:
> > With AS Perl 5.6.1.638 and PDK version
6.02.203380, I was able to
> > create an executable from a perl where the .exe
file was 1,736,770
> > bytes in size.
> [...]
> > Running the same script through new perl and
perlapp (Perl 5.8.8.820
> > and PDK 7.0.0.277058) gives me a .exe file that is
2,261,076 bytes.
> >
> > That is a 23% file size increase for the exact
same perl script.
> >
> > What can I do to reduce the file size without
breaking it? Is there an
> > easy way to know if --trim-implicit will cause
problems or not? Why is
> > the size so different from the previous version?
>
> Perl 5.8 is generally bigger than Perl 5.6, mostly due
to much improved
> Unicode support.
>
> You may want to compare the output from `perlapp
--verbose` from Perl 5.6
> and PDK 6 vs. Perl 5.8 and PDK 7 to see if there are
any additional modules
> that you cannot explain.  Feel free to send the output
to me and/or this
> list so we can see if the default behavior of PDK 7 can
be improved.
>
> Cheers,
> -Jan
>
>
_______________________________________________
PDK mailing list
PDKlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: PerlApp Executable Size
user name
2007-04-04 10:28:15
On 4/3/07, Jan Dubois  wrote:
> On Tue, 27 Mar 2007, DePriest, Jason R. wrote:
> > With AS Perl 5.6.1.638 and PDK version
6.02.203380, I was able to
> > create an executable from a perl where the .exe
file was 1,736,770
> > bytes in size.
> [...]
> > Running the same script through new perl and
perlapp (Perl 5.8.8.820
> > and PDK 7.0.0.277058) gives me a .exe file that is
2,261,076 bytes.
> >
> > That is a 23% file size increase for the exact
same perl script.
> >
> > What can I do to reduce the file size without
breaking it? Is there an
> > easy way to know if --trim-implicit will cause
problems or not? Why is
> > the size so different from the previous version?
>
> Perl 5.8 is generally bigger than Perl 5.6, mostly due
to much improved
> Unicode support.
>
> You may want to compare the output from `perlapp
--verbose` from Perl 5.6
> and PDK 6 vs. Perl 5.8 and PDK 7 to see if there are
any additional modules
> that you cannot explain.  Feel free to send the output
to me and/or this
> list so we can see if the default behavior of PDK 7 can
be improved.
>
> Cheers,
> -Jan
>
>

I found a system in my lab that still had perl 5.6 and PDK
6.02 on it.
 I forgot I had to use it a temporary workstation when my
laptop hard
disk drive went out a while back.

I am attaching the verbose output.

The script "uses"
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
use Cwd;
use File::Copy;
use Local::TeeOutput;
use Mail::Sender;
use Net:omain;
use Win32::AbsPath;
use Win32::ODBC;
use Win32::Service;
use Win32::TieRegistry ( Delimiter=>"/",
ArrayValues=>0 );
use XML::SAX;
use XML::SAX::PurePerl;
use XML::Simple;

It looks like the perl 5.8 + PDK7 version added about 200
more files
from  C:Perllibunicorel than the other had from
C:Perllibunicode

The perl 5.6 + PDK 6 .exe is 1,617,986 bytes
The perl 5.8 + PDK7 .exe is 2,314,324 bytes

Thanks!

-Jason

PS -  I am not sure why the other older .exe file was a tad
bit
larger.  My only guess is that this other system has
different
versions of some of the modules and they are smaller.  I can
check
that explicitly if you think it is an important issue.

_______________________________________________
PDK mailing list
PDKlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

  
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )