Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Perl - Modules)  »  perl script execution take a long time...
Page 1 of 1    

perl script execution take a long time...

Author Message
gjain...
Posted: Fri Sep 18, 2009 4:24 am
Guest
Hi,

I am having a perl script.The main script calls some 10 subroutines
which are in the same file.
Execution time of the script take around 1 and half minute which is
not desirable.
Please tell me the way to reduce the execution time.

Thanks
Gaurav
 
Tad J McClellan...
Posted: Fri Sep 18, 2009 6:29 pm
Guest
gjain <jaingaurav.08 at (no spam) gmail.com> wrote:

Quote:
Please tell me the way to reduce the execution time.


Remove some of the code.


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
 
Jürgen Exner...
Posted: Fri Sep 18, 2009 8:07 pm
Guest
gjain <jaingaurav.08 at (no spam) gmail.com> wrote:
[...]
Quote:
Execution time of the script take around 1 and half minute which is
not desirable.
Please tell me the way to reduce the execution time.

By coincidence a namesake of yours just posted exactly the same question
on CLP.misc. You may want to look there for general replies he got.

As far as modules are concerned: the loading time of a module really
shouldn't make any significant difference, but it may be worthwhile to
look for a leaner module with less functionality if you are using a big,
fat one where you are using only a small fraction of the features.

jue
 
 
Page 1 of 1    
All times are GMT
The time now is Tue Dec 01, 2009 9:31 am