[Mono-list] Exceptions and error codes.
Fri, 21 Mar 2003 14:10:07 +1100
On 20-Mar-2003, Thong Nguyen <email@example.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 <firstname.lastname@example.org> | "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.