erasure: avoid io.Copy in hotpaths to reduce allocation (#11213)

This commit is contained in:
Harshavardhana
2021-01-03 16:27:34 -08:00
committed by GitHub
parent c4131c2798
commit c4b1d394d6
5 changed files with 26 additions and 9 deletions

View File

@@ -186,7 +186,6 @@ func (p *parallelReader) Read(dst [][]byte) ([][]byte, error) {
readerIndex++
}
wg.Wait()
if p.canDecode(newBuf) {
p.offset += p.shardSize
if healRequired != 0 {