increased default cache size to 8 MB

This commit is contained in:
Arvid Norberg
2008-02-09 21:09:29 +00:00
parent 99eed299cd
commit ea7253c575
2 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ namespace libtorrent
, upnp_ignore_nonrouters(true) , upnp_ignore_nonrouters(true)
, send_buffer_watermark(80 * 1024) , send_buffer_watermark(80 * 1024)
, auto_upload_slots(true) , auto_upload_slots(true)
, cache_size(128) , cache_size(512)
{} {}
// this is the user agent that will be sent to the tracker // this is the user agent that will be sent to the tracker
@@ -320,7 +320,7 @@ namespace libtorrent
bool auto_upload_slots; bool auto_upload_slots;
// the disk write cache, specified in 16 KiB blocks. // the disk write cache, specified in 16 KiB blocks.
// defaul is 128 (= 2 MB) // defaul is 512 (= 8 MB)
int cache_size; int cache_size;
}; };

View File

@@ -50,7 +50,7 @@ namespace libtorrent
: m_abort(false) : m_abort(false)
, m_queue_buffer_size(0) , m_queue_buffer_size(0)
, m_num_cached_blocks(0) , m_num_cached_blocks(0)
, m_cache_size(128) // 128 * 16kB = 2MB , m_cache_size(512) // 512 * 16kB = 8MB
, m_pool(block_size) , m_pool(block_size)
#ifndef NDEBUG #ifndef NDEBUG
, m_block_size(block_size) , m_block_size(block_size)