From 170b0798fdc7020ac46a5b9ce3fea2e60a65e6b8 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 11 Jun 2011 07:49:34 +0000 Subject: [PATCH] Revert recent memory fix for Windows --- src/qtlibtorrent/qbtsession.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 2929d93b7..6f9553b06 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -403,8 +403,10 @@ void QBtSession::configureSession() { #ifdef Q_WS_WIN #if LIBTORRENT_VERSION_MINOR > 14 // 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; + //sessionSettings.disk_io_write_mode = session_settings::disable_os_cache; + //sessionSettings.disk_io_read_mode = session_settings::disable_os_cache; + sessionSettings.disk_io_write_mode = session_settings::disable_os_cache_for_aligned_files; + sessionSettings.disk_io_read_mode = session_settings::disable_os_cache_for_aligned_files; #endif #endif // Queueing System