Dear monks,
I have used PAR::Packer's pp command in order to create a standalone perl executable for my application. (My OS is Windows Vista Home Premium, ActivePerl-5.8.8.822-MSWin32-x86-280952 and PAR::Packer 0.982).
The problem I am facing is the annoyingly long startup time when I double click on my exe. Depending on the PC's processing power, the time (of the first execution) ranges from 20 seconds to more than 40 seconds, giving the impression that the application is doing nothing!
The only related info I could find in the web was this discussion
http://osdir.com/ml/lang.perl.par/2007-11/msg00019.html
but it is somewhat complicated for me to follow.
The modules I am including in my script are quite a few
use threads;
use threads::shared;
use Time::HiRes;
use Tk;
use Cwd;
use Tk::Icon;
use Tk::TopLevel;
use utf8;
use Win32;
use Win32::TieRegistry;
use Win32::OLE('in');
use Win32::OLE qw(EVENTS);
use Win32::FileOp qw(ShellExecute);
use Net::UPnP::ControlPoint;
use Net::Telnet;
use LWP::Simple;
use POSIX(":sys_wait_h");
use constant wbemFlagReturnImmediately => 0x10;
use constant wbemFlagForwardOnly => 0x20;
require "myhelpscript.pl";
and the command that I use for compilation is
pp -v -l C:\Perl\lib -l C:\Perl\site\lib -a C:\Perl\eg\myhelpscript.pl
+ --gui -i C:\Perl\eg\images\logo.ico -o myscript.exe myscript.pl
Can a more experienced monk point out some methods to decrease the unpack time or suggest any other solution around this problem?
Thanks in advance,
Athanasia
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.