Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmap(win32): avoid expensive fstat() call
On Windows, we have to emulate the fstat() call to fill out information that takes extra effort to obtain, such as the file permissions/type. If all we want is the file size, we can use the much cheaper GetFileSizeEx() function (available since Windows XP). Suggested by Philip Kelley. Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information