(trunk libT) #3231 "Check existing data is extremely slow" -- increase the read buffer size as suggested by eridius
This commit is contained in:
parent
9b653523bb
commit
25a5b2918a
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue