Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Performance improvement in perl scripts

by davido (Archbishop)
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2018-06-20 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?