diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-04-22 16:31:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-22 15:01:15 -0700 |
commit | 7ce7ee2d8228a97f023c7e34488ed83a557d83fb (patch) | |
tree | cd0abdb9d35986108bcf8fe442bc394b53bfe8d2 /t/t1002-read-tree-m-u-2way.sh | |
parent | 6a730e10a76d1e03a9554292419201534c1521f1 (diff) | |
download | git-7ce7ee2d8228a97f023c7e34488ed83a557d83fb.tar.gz |
mmap(win32): avoid copy-on-write when it is unnecessary
Often we are mmap()ing read-only. In those cases, it is wasteful to map in
copy-on-write mode. Even worse: it can cause errors where we run out of
space in the page file.
So let's be extra careful to map files in read-only mode whenever
possible.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1002-read-tree-m-u-2way.sh')
0 files changed, 0 insertions, 0 deletions