Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

plumbing: packfile, Add a buffer to crc writer #724

Merged
merged 2 commits into from Jan 21, 2018

Commits on Jan 21, 2018

  1. 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>
    jfontan committed Jan 21, 2018
    Copy the full SHA
    f4e603f View commit details
    Browse the repository at this point in the history
  2. plumbing: packfile, Add crc check to scanner test.

    Signed-off-by: Javi Fontan <jfontan@gmail.com>
    jfontan committed Jan 21, 2018
    Copy the full SHA
    1cb896b View commit details
    Browse the repository at this point in the history