These are chat archives for anacrolix/torrent
DefaultStorage: storage.NewFileWithCompletion(config.Get().DownloadPath, s.PieceCompletion),
0 0% 33.88% 3.88s 16.70% github.com/anacrolix/torrent.(*Torrent).setInfoBytes.func1 0.01s 0.043% 33.92% 3.88s 16.70% github.com/anacrolix/torrent.(*Torrent).verifyPiece 0 0% 33.92% 3.87s 16.66% github.com/anacrolix/torrent.(*Torrent).hashPiece
Oh and regarding:
it would hash any data present in pieces that aren't marked complete in the piece completion db.
The reason I wasn't seeing this with go-peerflix is because I only tried it with the FAT32 compatible driver, where each piece was it's own file, so the check was really fast for pieces that haven't been downloaded, as it would get file not exist. But since the standard file driver is doing a pre-allocate when it is created (isn't it?), it'll read all 0s while checking (I assume).