in reply to Re^4: Selective Optimization
in thread Selective Optimization

So you're wanting to optimize subroutines that only print text to the screen, and nothing else? Are you sure you read Optimizing existing Perl code (in practise) (the thread you linked earlier)? (jeffa) Re: Optimizing existing Perl code (in practise) seems to be particularly applicable. The time you'll spend on this would almost certainly be better spent finding ways to make your code more maintainable, better commented, etc.

That said...
Perhaps you could combine all of your data to be printed into a single scalar...this could possibly improve your help sub a bit...since you would only be calling into print a single time...

Replies are listed 'Best First'.
Re^6: Selective Optimization
by starX (Chaplain) on Dec 19, 2007 at 16:45 UTC
    No. I'm wanting to optimize the application so that subs that only print text to the screen don't take half the standard execution time to run. Are you sure you read the entire thread?

    I don't particularly need it to be more maintainable, especially those bits. Then again, I don't particularly need it to run faster either. If the installer has to wait a half minute to check the version number of an already installed copy, I'm not going to sweat it, but if it makes sense for it to not have to, great.