Page 1 of 1

Posted: Fri Jul 26, 2002 12:56 am
by EarlyFirst
http://msdn.microsoft.com/library/defau ... namemo.asp


just wondering if this could be helpfull to us?
anyone with any ideas?

Posted: Fri Jul 26, 2002 5:46 am
by devo
sorry, but I don't think so. Memory mapped files have been around for some time (at least in Unix and Windows NT systems) and its not really a performance boosting feature in itself.

There are probably other examples, but the biggest use is to let the OS manage I/O and caching of a file, instead of you having to include that functionality in your own code. The memory-mapped file works a bit like the swap file. Only it's dedicated to manage a certain adress space in your process(es), so when your program access an address in that memory space, the OS will make sure the correct part of the file is in the memory at that address.
I don't know exactly about Windows NT, but Unix systems usually use this feature for loading shared libraries (DLL's in Windows) - they just map the whole library file to a certain address space.