howard chen wrote:
Hi,

I have compiled a quite large perl program (with around 20 external
modules) using latest version PAR (download via ppm).

The compiled exe work, but requires around 10 second of startup time,
is that normal?

Thanks.

There are two things that come into play here.

10 seconds for the first time the exe is invoked is actually reasonable, depending on your machine. Compare that with the first time you call up, say, Firefox, OpenOffice or Microsoft Word. It has to do the unpacking needed, putting the unpacked code into the cache directory. Subsequent invocations should be much faster.

I have a 2Ghz, 1Gig ram AMD based PC. For my largest application, my first-time timing was about 10 seconds as well. After a shut down and a reboot, the first invocation then takes up to 5 seconds. Subsequent to that it takes one to three seconds because it is still in my (large) ram area.

When I "dir *.p?" in the said large application directory, I get this:

 109 File(s)      2,220,093 bytes

My executable size is 4,982,344 bytes.


Reply via email to