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 /list-objects.c | |
parent | 7ce7ee2d8228a97f023c7e34488ed83a557d83fb (diff) | |
download | git-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 'list-objects.c')
0 files changed, 0 insertions, 0 deletions