Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: conditional debug call perf

by SheridanCat (Pilgrim)
on Jan 25, 2007 at 00:45 UTC ( #596377=note: print w/replies, xml ) Need Help??


in reply to conditional debug call perf

You might want to take a look at Log::Log4Perl. I can't say it's going to reduce your performance overhead, but it will make your logging (for debugging and other purposes) more flexible.

Have you profiled or benchmarked your code to see if those "if" statements are really causing any performance issues? Usually you'll find those bottlenecks elsewhere, such as in file I/O or database calls.

Here's an article on Log4Perl you might find useful: Retire your debugger....

Replies are listed 'Best First'.
Re^2: conditional debug call perf
by greatdane (Beadle) on Jan 25, 2007 at 01:43 UTC
    Thanks for the pointer. I will look into using that within my debug function.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2023-01-27 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?