Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^4: code optimization

by Anonymous Monk
on Nov 05, 2011 at 00:13 UTC ( #936057=note: print w/replies, xml ) Need Help??

in reply to Re^3: code optimization
in thread code optimization

Profilers can lead to false optimizations because your measuring the overhead of recording the timings (OS interrupts/OS calls/context switches/mutex hits/evals/method resolution) or 1 run if the func is below the OS timer resolution. I took nytprof to these subs and nytprof changed which is the fastest sub which is no good.

Well, Benchmark isn't exactly a profiler, and reinventing Benchmark seems like a particularly pedestrian thing to reinvent, and the overhead is accounted for

But, regarding NYTProf, I don't get the argument, its not as if it is Benchmark :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://936057]
[1nickt]: Corion I feel that way a lot when I look at the news...
[1nickt]: Brethren, I just noticed in the CPAN ticker Retry, which led me to Attempt, by Mark Fowler. Does anyone have experience with either of these utilities?
[Corion]: No. Back when I toyed with the idea, I found that writing the loop explicitly was usually less code than passing the configuration+ callback to the retrier...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-05-24 12:32 GMT
Find Nodes?
    Voting Booth?