]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #3231 "Check existing data is extremely slow" -- increase the read buffe...
authorCharles Kerr <charles@transmissionbt.com>
Tue, 25 May 2010 20:19:34 +0000 (20:19 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 25 May 2010 20:19:34 +0000 (20:19 +0000)
libtransmission/verify.c

index 0ebba00baedc645a7055710e52aaf403baa4cf50..720b1d08028142b5165c3ebfedf4a73843cae0ef 100644 (file)
@@ -60,7 +60,8 @@ verifyTorrent( tr_torrent * tor, tr_bool * stopFlag )
     tr_piece_index_t pieceIndex = 0;
     const time_t begin = tr_time( );
     time_t end;
-    const int64_t buflen = 16384;
+    //const int64_t buflen = 1024 * 128; /* 128 KiB buffer */
+    const int64_t buflen = 1024 * 1024;
     uint8_t * buffer = tr_valloc( buflen );
 
     SHA1_Init( &sha );