Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: optimize the code

by BioLion (Curate)
on Jun 24, 2010 at 12:02 UTC ( #846290=note: print w/replies, xml ) Need Help??


in reply to optimize the code

Code optimisation is always easier if you can properly compare the speed of different approaches, sometimes there are suprising results - see Benchmark and Devel::NYTProf. The second is a very good code profiler and might help, but in your case optimising the IO seems the important thing, comparing the different approaches and checking that 'improvements' actually *improve the running speed* with benchmarking is the best approach. Hope this helps.

Just a something something...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://846290]
help
Chatterbox?
[zentara]: marto I would give up the key easy with drugs....
[Corion]: Discipulus: No, the Perl opcodes are more high-level than the raw processor opcodes
[zentara]: sodium pentathol and a beautiful woman interogator :-)
[Discipulus]: thanks Corion if so i probably never meet them in my life.. ;=)
[Discipulus]: have you all a nice and relaxing weekend!
NodeReaper on the other hand, I've already bought the hammer....

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-07-28 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.