Saturday 15 February 2014

windows - Advantages to using FILE_FLAG_NO_BUFFERING with memory mapped files? -



windows - Advantages to using FILE_FLAG_NO_BUFFERING with memory mapped files? -

are there advantages using memory mapped file has been created file_flag_no_buffering flag? in situation, reads memory mapped file random access. writes appends new data, , less random access when corrections/updates made.

just citing msdn:

file_flag_no_buffering file or device beingness opened no scheme caching info reads , writes. this flag not impact hard disk caching or memory mapped files.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858%28v=vs.85%29.aspx

so, there no advantages. create code more complex if tried handle alignment needs of file_flag_no_buffering.

windows memory-mapped-files createfile

No comments:

Post a Comment