|
On 05/19/2010 03:27 PM, Jim Whitehead II wrote:
If the condition is not an incredibly complicated calculation itself, and the error message (if supplied) is not a constructed string, I suspect most people will find even heavily asserted programs do not run measurably slower than the equivalent program without assertions. Certainly assertions in tight loops that are called frequently could cause a problem, but that's a bit of a corner case that can be designed around.
I agree. I won't remove them unless it improves performance noticeably. A bit of a problem could be that sometimes I make *a lot* of checks :) Sincerely, Nick