Assuming that I want to read sequential data from some large files which approach is better (assuming I don't want to use to much memory) - Reading to a buffer (using ReadFile) or Mapping the relevent section of the file (using MapViewOfFile) ?

Posted on 2002-07-01 14:26:11 by titanium
If you are planning to read all at once, use ReadFile on file created with CreateFile with the FILE_FLAG_SEQUENTIAL_SCAN for maximum performance and efficiency.
Posted on 2002-07-01 15:33:18 by comrade
file mappings are limited (at least under Win95) to 1 GByte. Mapping larger files fails.
Posted on 2002-07-04 12:35:08 by beaster
beaster: and if you watched recent posts youd know why ;)
Posted on 2002-07-04 19:17:25 by f0dder