Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Does the number of events affect Performance ??

Does the number of events affect Performance ??

Scheduled Pinned Locked Moved COM
questioncomsysadminperformance
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Firoz
    wrote on last edited by
    #1

    Hi, I have a DCOM application, where the component fires 8-10 events. But all the events are similar in structure. (ie. they doesnt have any data associated with them). The only difference is the event name. So, I can easily use a single event to Notify all my events to the client (And have some Parameter that distinguishes the event to the client). Now, my question is will this (using a single event in place of many events) provide any PERFORMANCE benefits in a DCOM application ?? if yes, How ?? (some technical description will be appreciated) anyway, the number of Network RoundTrips is going to be the same... if no, What will be a good COM programming practice in this situation. (using a Single event or using different events) Please somebody reply ...:( I had posted this earlier, but got no response... Thanks, Firoz.

    N J 2 Replies Last reply
    0
    • F Firoz

      Hi, I have a DCOM application, where the component fires 8-10 events. But all the events are similar in structure. (ie. they doesnt have any data associated with them). The only difference is the event name. So, I can easily use a single event to Notify all my events to the client (And have some Parameter that distinguishes the event to the client). Now, my question is will this (using a single event in place of many events) provide any PERFORMANCE benefits in a DCOM application ?? if yes, How ?? (some technical description will be appreciated) anyway, the number of Network RoundTrips is going to be the same... if no, What will be a good COM programming practice in this situation. (using a Single event or using different events) Please somebody reply ...:( I had posted this earlier, but got no response... Thanks, Firoz.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      From a mantainability and debugging point of view combining all events into a single one would of course be more beneficial. I don't believe I've seen any performance difference in using multiple events rather than a single one, as you said the round trips will be the same.

      1 Reply Last reply
      0
      • F Firoz

        Hi, I have a DCOM application, where the component fires 8-10 events. But all the events are similar in structure. (ie. they doesnt have any data associated with them). The only difference is the event name. So, I can easily use a single event to Notify all my events to the client (And have some Parameter that distinguishes the event to the client). Now, my question is will this (using a single event in place of many events) provide any PERFORMANCE benefits in a DCOM application ?? if yes, How ?? (some technical description will be appreciated) anyway, the number of Network RoundTrips is going to be the same... if no, What will be a good COM programming practice in this situation. (using a Single event or using different events) Please somebody reply ...:( I had posted this earlier, but got no response... Thanks, Firoz.

        J Offline
        J Offline
        Jamie Hale
        wrote on last edited by
        #3

        Firoz wrote: the number of Network RoundTrips is going to be the same... How do you figure? As I see it, DCOM needs to setup for each call. If you only call once, this setup (marshalling and whatnot) is only done once. If you do many calls, this setup needs to be done each time. Sure the amount of data (from your point of view) being sent is the same (1 x 10 events or 10 x 1 events), but I think you need to take into consideration the setup and teardown of the connection. Please correct me if I'm wrong. :) J

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups