c++ - Time Consumption of FlushViewOfFile (Windows) and msync(Linux) -


good morning,

we interested in time consumption of flushviewoffile , msync. quoting unmapviewoffile documentation:

to minimize risk of data loss in event of power failure or system crash, applications should explicitly flush modified pages using flushviewoffile function.

are flushviewoffile() , msync() expensive operations? reason asking in our application, may not need minimize risk of data loss in event of system crash.

thank you,

they expensive in sense move cached file memory disk. use memory mapped files avoid doing that! normal strategy flush infrequently program requirements allow.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -