Re: Maintain list of attached event handlers (.Net 1.1)
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Tue, 10 Jul 2007 20:53:44 -0700
On Tue, 10 Jul 2007 20:34:48 -0700, Armin Zingler <az.nospam@xxxxxxxxxx> wrote:
Why do you insist on doing extra work by detaching event handlers that have
already been detached before?
It's not extra work. It's _less_ work.
Why keep listening to events that will never occur?
Having a delegate attachd to an event is not "listening". It incurs zero performance penalty. Zero. If the memory cost is unacceptable after the event has been raised, then it was unacceptable before it was raised. The question of removing the delegate or not is a red herring. And leaving the delegate subscribed does not involve any execution overhead whatsoever.
.
- Follow-Ups:
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Armin Zingler
- Re: Maintain list of attached event handlers (.Net 1.1)
- References:
- Maintain list of attached event handlers (.Net 1.1)
- From: Armin Zingler
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Peter Duniho
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Armin Zingler
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Peter Duniho
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Armin Zingler
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Peter Duniho
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Armin Zingler
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Peter Duniho
- Re: Maintain list of attached event handlers (.Net 1.1)
- From: Armin Zingler
- Maintain list of attached event handlers (.Net 1.1)
- Prev by Date: Re: Thread safety of events
- Next by Date: Re: Hook Event for All Property Set?
- Previous by thread: Re: Maintain list of attached event handlers (.Net 1.1)
- Next by thread: Re: Maintain list of attached event handlers (.Net 1.1)
- Index(es):
Loading