Adam Lock wrote:
 > David Bradley wrote:
 >
 > Even taking this into account you still save because you don't have to
 > allocate memory to read from the into a buffer. Just map the file and
 > you have the pointer - no need for fread'ing at all.

You'd save one allocation for the buffer, and the overhead of one call
to fread/ReadFile per xpt file in this specific case. That might be 
worth the effort, but there is one fly in the ointment at least for xpt 
files, and that is they can be zipped, or at least there is code to 
support that.


Reply via email to