> Since I saw no one replied to my question yet, i will try to Clarify my
> question due to some research I've done.
> The Following 2 lines are the most significant in the overall performance
> of the script:
>
>  31.0 7.779 8.585 10715 0.0007 0.0008 Text::Balanced::_match_quotelike
>  30.4 7.641 10.213 10967 0.0007 0.0009 Text::Balanced::_match_variable
> 
> >From what I've found, "match_quotelike" means that Perl deciphers all the
> quotes (double, single... ) before running the script.
> 
> And there is a LOT of those in my script (it's kind of an interactive
> program with heaps of menus and printouts).

    You are under a very basic misunderstanding. This is a trace of the
EXECUTION of your script, not the compilation/loading. From the earlier
messages you sent in, you are calling "Switch::filter_blocks", which I
am not familiar with but presumably reads switch configuration files. It
uses the "Text::Balanced" packages to parse those, not your script.

    This accounts for almost the entire run of your program.

    The one thing that happens when your program loads, before the first
statement gets control, is the execution of any "BEGIN" blocks. These are
essentially what "use" uses to load the packages into your program. If
you look further down the trace, you will see that most of these are under
fractions of a second. Not even the total is significant.

    Stop looking at the loading of your program becauase it is not broken.
Look at what it is doing. The profile showed you ran "Switch::filter_blocks"
126 times. Do you need to parse all of those config files off the top? Can
you defer THAT?
--
Bruce A. Hudson                         | [EMAIL PROTECTED]
UCIS, Networks and Systems              |
Dalhousie University                    |
Halifax, Nova Scotia, Canada            | (902) 494-3405
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to