diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-12-24 00:45:47 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-24 00:29:43 -0800 |
commit | 8e554429e8a9dbb5dba6b8aeca66fc27c0bb5538 (patch) | |
tree | adf7d910ef56f76cef598db30fec509b94c64d92 /cache-tree.h | |
parent | d6779124b90ef5c00697815b04c9f75fd3756586 (diff) | |
download | git-8e554429e8a9dbb5dba6b8aeca66fc27c0bb5538.tar.gz git-8e554429e8a9dbb5dba6b8aeca66fc27c0bb5538.tar.xz |
Switch git_mmap to use pread.
Now that Git depends on pread in index-pack its safe to say we can
also depend on it within the git_mmap emulation we activate when
NO_MMAP is set. On most systems pread should be slightly faster
than an lseek/read/lseek sequence as its one system call vs. three
system calls.
We also now honor EAGAIN and EINTR error codes from pread and
restart the prior read.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions