Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Performance improvement in perl scripts

by davido (Bishop)
on Apr 26, 2012 at 09:29 UTC ( #967280=note: print w/ replies, xml ) Need Help??


in reply to Performance improvement in perl scripts

Profile, then optimize. Devel::NYTProf is sort of the big guy on the block for profiling in Perl.

Once you've identified the problem areas, that's where the real programming begins. Remember:

If your code is too slow, you must make it faster. If no better algorithm is available, you must trim cycles.

-- Tom "Duff's Device" Duff


Dave


Comment on Re: Performance improvement in perl scripts
Re^2: Performance improvement in perl scripts
by JavaFan (Canon) on Apr 26, 2012 at 10:28 UTC
    You're not following the advice you're quoting!

    Tom starts off with If your code is too slow. This part is the most significant.

    If your code isn't too slow, there's no need to profile or optimize.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2013-05-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (401 votes), past polls