Memory Mapped File Performance Question (Urgent Answer Needed)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Memory Mapped File Performance Question (Urgent Answer Needed)

  1. #1
    Join Date
    Dec 2005
    Posts
    114

    Memory Mapped File Performance Question (Urgent Answer Needed)

    I would just like to know if it would be inefficient if I created a hundred or more view streams or view accessors from a Memory Mapped File object per process, and I had a few or more processes running that shared this file. (By file I mean memory-mapped file that is not persisted to the disk.) It is more efficient to create and destroy one view stream / view accessors many times? Or do I need to rework my implementation of what I'm working on so that it depends on only one or a few views accessors / streams?

    Any help would be appreciated, and this is urgent because I am trying to get something done as soon as possible.

  2. #2
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,006

    Re: Memory Mapped File Performance Question (Urgent Answer Needed)

    I'm not sure. Generic guidance: Try out a (rapid) prototype of your current plan, check to see if it's fast enough; if not, re-design.

    It might be helpful if you gave more information about what sort of problem you are trying to solve.

    I assume we're talking about things in this namespace: http://msdn.microsoft.com/en-us/libr...orymappedfiles
    Best Regards,

    BioPhysEngr
    http://blog.biophysengr.net
    --
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,473

    Re: Memory Mapped File Performance Question (Urgent Answer Needed)

    Also, since this is considered a shared resource that is accessed by multiple threads, don't forget to synchronize access to the memory mapped file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center