From 041540de6bf43cd781502386d9f6086db59412e6 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 3 Dec 2012 18:52:07 +0200 Subject: [PATCH] Reenable OS cache on Windows --- src/qtlibtorrent/qbtsession.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 499670eeb..0c72a3728 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -400,12 +400,6 @@ void QBtSession::configureSession() { int cache_size = pref.diskCacheSize(); sessionSettings.cache_size = cache_size ? cache_size * 64 : -1; qDebug() << "Using a disk cache size of" << pref.diskCacheSize() << "MiB"; - // Disable OS cache to avoid memory problems (uTorrent behavior) -#ifdef Q_WS_WIN - // Fixes huge memory usage on Windows 7 (especially when checking files) - sessionSettings.disk_io_write_mode = session_settings::disable_os_cache; - sessionSettings.disk_io_read_mode = session_settings::disable_os_cache; -#endif #if LIBTORRENT_VERSION_MINOR > 15 sessionSettings.anonymous_mode = pref.isAnonymousModeEnabled(); if (sessionSettings.anonymous_mode) {