diff --git a/include/libtorrent/session_settings.hpp b/include/libtorrent/session_settings.hpp index 1b9ee7873..c19f0b2bb 100644 --- a/include/libtorrent/session_settings.hpp +++ b/include/libtorrent/session_settings.hpp @@ -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; }; diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 7c9a8cacb..4638410e1 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -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)