Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

perl script execution take a long time

0 views
Skip to first unread message

gjain

unread,
Sep 18, 2009, 12:24:53 AM9/18/09
to
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

unread,
Sep 18, 2009, 10:29:55 AM9/18/09
to
gjain <jainga...@gmail.com> wrote:

> 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

unread,
Sep 18, 2009, 12:07:11 PM9/18/09
to
gjain <jainga...@gmail.com> wrote:
[...]

>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

0 new messages