Re: How much processor resources do try-catch blocks in C# use
From: Marc Butenko (mbutenko_at_state.mt.us)
Date: 05/19/04
- Next message: Don Payette: "Re: Attempt to load VC++ project fails"
- Previous message: Peter van der Goes: "Re: ERROR MESSAGES"
- In reply to: David Alexander: "How much processor resources do try-catch blocks in C# use"
- Next in thread: Dan: "Re: How much processor resources do try-catch blocks in C# use"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 May 2004 16:12:05 -0600
You are right...if no exceptions are thrown, the differences are
imperceptible -- the only major overhead is incurred when the exception is
thrown...
-- Marc Butenko mbutenko@bresnan.net "David Alexander" <dalexander1@protocolmarketing.com> wrote in message news:Od1CDudPEHA.3988@tk2msftngp13.phx.gbl... > I was discussing with someone how much processor resources try-catch blocks > use in C#. I would think that if no exceptions were thrown by a block of > code in a try block, it would run as quickly as a block that wasn't inside a > try block. > > Even if using try-catch blocks do incur some extra resource use, I doubt > that it is significant in an unthreaded application that handles large data > sets. > > Does anyone know for sure? > >
- Next message: Don Payette: "Re: Attempt to load VC++ project fails"
- Previous message: Peter van der Goes: "Re: ERROR MESSAGES"
- In reply to: David Alexander: "How much processor resources do try-catch blocks in C# use"
- Next in thread: Dan: "Re: How much processor resources do try-catch blocks in C# use"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|