Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Optimize debugging subs

by danb (Friar)
on Apr 05, 2006 at 06:10 UTC ( [id://541287]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Optimize debugging subs
in thread Optimize debugging subs

Good point; what about this?

Lots debug() calls inside a long-running loop, inside many very frequently called subs, running in a virtual server program (with access to only 10% of the CPU), running on a commodity server (Pentium-III 1.3 Ghz), being accessed by many simultaneous clients.

That's a lot different than the Benchmark I just ran on a Athlon64 X2 2.4ghz.

Besides, what about the enjoyment of knowing that there is *no* debugging code in your program?

--Dan

Replies are listed 'Best First'.
Re^5: Optimize debugging subs
by ikegami (Patriarch) on Apr 05, 2006 at 14:22 UTC
    Besides, what about the enjoyment of knowing that there is *no* debugging code in your program?

    Enjoyment? In practice, I've found debug vs production optimizations a source of headaches. Also, I've found the production version is not sufficiently tested. People assume the production version will work because the debug version does.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found