Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:06
hint_549-Nov-05 9:06 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 9:36
cgreathouse9-Nov-05 9:36 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:48
hint_549-Nov-05 10:48 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:55
David Crow9-Nov-05 9:55 
AnswerRe: Fast files Pin
David Crow9-Nov-05 8:34
David Crow9-Nov-05 8:34 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:15
hint_549-Nov-05 9:15 
General[Message Deleted] Pin
Mathieu Dijkstra9-Nov-05 9:31
Mathieu Dijkstra9-Nov-05 9:31 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:49
David Crow9-Nov-05 9:49 
hint_54 wrote:
You are talking about DMA rigth?


No. DMA is a way to access memory independently of the CPU.

hint_54 wrote:
I don't know how to use it with files!


A memory-mapped file is a spot in memory that can be accessed (e.g., open, close, read, write, seek) as though it were an actual file. By eliminating file I/O, a speed increase is (normally) realized. See these for examples:

  • http://www.ecst.csuchico.edu/~beej/guide/ipc/mmap.html
  • http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_manamemo.asp
  • http://www.codeproject.com/file/xreverse.asp
  • http://www.codeproject.com/file/findidaddressbook.asp
  • http://www.codeproject.com/file/Memory_Mapped_Class___PBD.asp
  • http://www.codeproject.com/win32/cmemmap.asp




    "Take only what you need and leave the land as you found it." - Native American Proverb


  • GeneralRe: Fast files Pin
    hint_549-Nov-05 10:06
    hint_549-Nov-05 10:06 
    GeneralRe: Fast files Pin
    David Crow9-Nov-05 10:17
    David Crow9-Nov-05 10:17 
    GeneralRe: Fast files Pin
    hint_549-Nov-05 10:31
    hint_549-Nov-05 10:31 
    GeneralRe: Fast files Pin
    James R. Twine9-Nov-05 17:05
    James R. Twine9-Nov-05 17:05 
    GeneralRe: Fast files Pin
    hint_5410-Nov-05 7:52
    hint_5410-Nov-05 7:52 
    AnswerRe: Fast files Pin
    James R. Twine9-Nov-05 16:59
    James R. Twine9-Nov-05 16:59 
    GeneralRe: Fast files Pin
    David Crow10-Nov-05 2:42
    David Crow10-Nov-05 2:42 
    AnswerRe: Fast files Pin
    QuiJohn9-Nov-05 9:44
    QuiJohn9-Nov-05 9:44 
    GeneralRe: Fast files Pin
    hint_549-Nov-05 9:59
    hint_549-Nov-05 9:59 
    GeneralRe: Fast files Pin
    David Crow9-Nov-05 10:40
    David Crow9-Nov-05 10:40 
    GeneralRe: Fast files Pin
    hint_549-Nov-05 10:51
    hint_549-Nov-05 10:51 
    GeneralRe: Fast files Pin
    kakan9-Nov-05 20:36
    professionalkakan9-Nov-05 20:36 
    GeneralRe: Fast files Pin
    hint_5410-Nov-05 8:59
    hint_5410-Nov-05 8:59 
    GeneralRe: Fast files Pin
    kakan10-Nov-05 19:50
    professionalkakan10-Nov-05 19:50 
    AnswerRe: Fast files Pin
    kakan9-Nov-05 20:51
    professionalkakan9-Nov-05 20:51 
    GeneralRe: Fast files Pin
    hint_5410-Nov-05 9:30
    hint_5410-Nov-05 9:30 
    GeneralRe: Fast files Pin
    kakan10-Nov-05 19:41
    professionalkakan10-Nov-05 19:41 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.