From cc6bc5ba17b270394e18309d051d0f515cdb2ffa Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 28 Nov 2011 17:51:14 +0000 Subject: [PATCH] back-out attempt to make disk cache hits faster. it corrupts data --- src/disk_io_thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 1e70e458d..6f431a40d 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -1321,6 +1321,7 @@ namespace libtorrent && m_settings.max_queued_disk_bytes > 0) m_exceeded_write_queue = true; } +/* else if (j.action == disk_io_job::read) { // if this is a cache hit, return it right away! @@ -1347,7 +1348,7 @@ namespace libtorrent free_buffer(j.buffer); const_cast(j).buffer = 0; } - +*/ m_jobs.push_back(j); m_jobs.back().callback.swap(const_cast&>(f));