diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-04-22 16:31:32 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-22 15:01:16 -0700 |
commit | d5425d10ca68a297061f87f4460dd7e0b32b39a6 (patch) | |
tree | fb764715cbda50406df7e55dc86100a8aca47266 /compat/mingw.c | |
parent | mmap(win32): avoid copy-on-write when it is unnecessary (diff) | |
download | tgif-d5425d10ca68a297061f87f4460dd7e0b32b39a6.tar.xz |
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 <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.c')
0 files changed, 0 insertions, 0 deletions