in reply to conditional debug call perf

Have you measured the overhead the debugging calls add? In other words, are you sure that moving the if into foo_debug will make a noticeable difference?

Replies are listed 'Best First'.
Re^2: conditional debug call perf
by greatdane (Beadle) on Jan 25, 2007 at 01:47 UTC
    I have not measured. Yet, I have tons of these debug calls with many inside critical hefty loops so I assume that every fraction of a second will help.

      Don't assume. Measure.