increased default cache size to 8 MB
This commit is contained in:
parent
99eed299cd
commit
ea7253c575
|
@ -120,7 +120,7 @@ namespace libtorrent
|
|||
, upnp_ignore_nonrouters(true)
|
||||
, send_buffer_watermark(80 * 1024)
|
||||
, auto_upload_slots(true)
|
||||
, cache_size(128)
|
||||
, cache_size(512)
|
||||
{}
|
||||
|
||||
// this is the user agent that will be sent to the tracker
|
||||
|
@ -320,7 +320,7 @@ namespace libtorrent
|
|||
bool auto_upload_slots;
|
||||
|
||||
// the disk write cache, specified in 16 KiB blocks.
|
||||
// defaul is 128 (= 2 MB)
|
||||
// defaul is 512 (= 8 MB)
|
||||
int cache_size;
|
||||
};
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace libtorrent
|
|||
: m_abort(false)
|
||||
, m_queue_buffer_size(0)
|
||||
, m_num_cached_blocks(0)
|
||||
, m_cache_size(128) // 128 * 16kB = 2MB
|
||||
, m_cache_size(512) // 512 * 16kB = 8MB
|
||||
, m_pool(block_size)
|
||||
#ifndef NDEBUG
|
||||
, m_block_size(block_size)
|
||||
|
|
Loading…
Reference in New Issue