(trunk libT) #3231 "Check existing data is extremely slow" -- increase the read buffer size as suggested by eridius

This commit is contained in:
Charles Kerr 2010-05-25 20:19:34 +00:00
parent 9b653523bb
commit 25a5b2918a
1 changed files with 2 additions and 1 deletions

View 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 );