[Mono-list] Exceptions and error codes.

Fergus Henderson fjh@cs.mu.OZ.AU
Fri, 21 Mar 2003 14:10:07 +1100


On 20-Mar-2003, Thong Nguyen <tum@veridicus.com> wrote:
> Exceptions can be much slower than using error codes, however, it
> should be noted that the path of error is usually the least walked path.
> Most of the time your code will not throw exceptions.  When exceptions
> aren't thrown there is *very* little overhead.

Are you sure?  Have you measured it?

Note that the exception handling scheme used on Windows requires some
overhead for "try" statements even in the case when no exception is thrown.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.