]> Sergey Matveev's repositories - btrtrc.git/blobdiff - piece.go
Reduce allocations for Piece.hash
[btrtrc.git] / piece.go
index e580754df63cef2037eba8539a66ce87106e2120..6598859523150abd9cf78bcb6df5e577ed0484cd 100644 (file)
--- a/piece.go
+++ b/piece.go
@@ -39,7 +39,7 @@ const (
 
 type Piece struct {
        // The completed piece SHA1 hash, from the metainfo "pieces" field.
-       hash  metainfo.Hash
+       hash  *metainfo.Hash
        t     *Torrent
        index pieceIndex
        files []*File