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 6699879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:44:54+00:00 2026-05-26T06:44:54+00:00

My performance sensitive application uses MemoryMappedFiles for pushing bulk data between many AppDomains. I

  • 0

My performance sensitive application uses MemoryMappedFiles for pushing bulk data between many AppDomains. I need the fastest mechanism to signal a receiving AD that there is new data to be read.

The design looks like this:

AD 1: Writer to MMF, when data is written it should notify the reader ADs

AD 2,3,N..: Reader of MMF

The readers do not need to know how much data is written because each message written will start with a non zero int and it will read until zero, don’t worry about partially written messages.

(I think) Traditionally, within a single AD, Monitor.Wait/Pulse could be used for this, I do not think it works across AppDomains.

A MarshalByRefObject remoting method or event can also be used but I would like something faster. (I benchmark 1,000,000 MarshalByRefObject calls/sec on my machine, not bad but I want more)

A named EventWaitHandle is about twice as fast from initial measurements.

Is there anything faster?

Note: The receiving ADs do not need to get every signal as long as the last signal is not dropped.

  • 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-26T06:44:55+00:00Added an answer on May 26, 2026 at 6:44 am

    The named EventWaitHandle is the way to go for a one way signal (For lowest latency). From my measurements 2x faster than a cross-appdomain method call. The method call performance is very impressive in the latest versions of the CLR to date (4) and should make the most sense for the large majority of cases since it’s possible to pass some information int he method call (in my case, how much data to read)

    If it’s OK to continuously burn a thread on the receiving end, and performance is that critical, a tight loop may be faster.

    I hope Microsoft continues to improve the cross appdomain functionality as it can really help with application reliability and plugin-ins.

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

Sidebar

Related Questions

I'm in a very performance-sensitive portion of my code (C#/WPF), and I need to
I'd like to write a performance-sensitive application in Python, so executing it under PyPy
I am having a performance sensitive .net application. It is capable of doing parallel
Strange performance outcome, I have a LINQ to SQL query which uses several let
Criteria: Performance, Performance, Performance. I need a way to convert a uint, int, etc
For performance purposes I want to write to memory, where an external application can
I have a Data table whose primary key should be case sensitive. i.e. 'abc'
I need to add the [Serializable] attribute to a class that is extremely performance
In performance monitor, what is the difference between counter log and trace log? Any
I've got a WCF service which handles some sensitive data. I'd like to make

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.