diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-01-19 16:12:11 +0100 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-01-21 21:49:22 +0100 |
commit | f4e603f291c7badaa6489d0f9d00e71bd7fc579c (patch) | |
tree | d082f1ed9afe8014c9bbb2b74dcaae6a82c093b9 /worktree_darwin.go | |
parent | f6aca0820fb0a44d4c4875a21581a09609d63a6b (diff) | |
download | go-git-f4e603f291c7badaa6489d0f9d00e71bd7fc579c.tar.gz |
plumbing: packfile, Add a buffer to crc writer.
crc update with block smaller than 16 bytes uses a slower version of the
function. ReadByte is heavily used by zlib inflate so most of the time
crc is update byte by byte.
A new Flush method is added to the scanner to flush this crc writer
cache. It is only called when the Scanner reader is a teeReader.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'worktree_darwin.go')
0 files changed, 0 insertions, 0 deletions