Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3224060
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:10:44+00:00 2026-05-17T16:10:44+00:00

We were having a discussion at the office on how to solve a particular

  • 0

We were having a discussion at the office on how to solve a particular problem and using an event was raised (no pun intended). The response was negative citing misuse and that they can be expensive.

I understand the concerns behind misuse and I know that they are just a special multicast delegate but given a scenario where there is at most one listener why would using an event over a method call be considered “expensive”?

Update:

Just to be clear this is not about any particular implementation this is a more general question about the cost of using an event over a method call.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:10:45+00:00Added an answer on May 17, 2026 at 4:10 pm

    Test it in your scenario – I would imagine that many, many factors can affect this, especially when we’re talking something with such a low relative cost as a method/delegate call.

    A quick and simple test with a release build not under a debugger, compiled under 4.0 as “any cpu”, and running on 64-bit windows 7:

    Another Edit: Oops Here’s a better result. See the code for how it’s working

    10000000 direct reference calls     :   0.011 s
    10000000 calls through an interface :   0.037 s
    10000000 invocations of an event    :   0.067 s
    10000000 calls through Action<int>  :   0.035 s
    

    So in a straight “do nothing test” with ten million calls, an event adds .474 sec [edit, only .026 now on a much better machine, still roughly double however]

    I would worry more about correctness of design than half a second every 10 million calls, unless you are expecting to do that many calls in short periods of time (in which case perhaps there is a more fundamental design issue).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are having another discussion here at work about using parametrized sql queries in
I was having a discussion at our office whether to use Hibernate or not.
We're having a bit of a discussion in the office at the moment about
We were having this discussion wiht my colleagues about Inner assignments such as: return
I was having a discussion with one of my colleagues about how defensive your
We are currently having a discussion if dataset should go in the data or
I've been having a discussion with my coworkers as to whether to prefix overridden
We're having this discussion here. Which is better and why? 1) a php file
Recently I was having a discussion with a friend about Ruby's Proc . You
We've been having a discussion at work about whether to use Domain Objects in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.