Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 wandering the Monastery: (4)
As of 2018-02-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (315 votes). Check out past polls.

    Notices?