| Computers Forum Index » Computer Languages (Perl - Modules) » perl script execution take a long time... |
|
Page 1 of 1 |
|
| 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 |
|
|
| Back to top |
|
|
|
| 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/" |
|
|
| Back to top |
|
|
|
| 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 |
|
|
| Back to top |
|
|
|
|