summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-04-22 16:31:32 +0200
committerJunio C Hamano <gitster@pobox.com>2016-04-22 15:01:16 -0700
commitd5425d10ca68a297061f87f4460dd7e0b32b39a6 (patch)
treefb764715cbda50406df7e55dc86100a8aca47266 /alloc.c
parent7ce7ee2d8228a97f023c7e34488ed83a557d83fb (diff)
downloadgit-d5425d10ca68a297061f87f4460dd7e0b32b39a6.tar.gz
mmap(win32): avoid expensive fstat() calljs/win32-mmap
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 'alloc.c')
0 files changed, 0 insertions, 0 deletions