From 84426fd0a3a3bc8464f574c341ca031497e10b75 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 24 Jun 2009 21:39:15 +0000 Subject: [PATCH] merkle tree torrents use 64 kiB piece sizes --- docs/make_torrent.rst | 2 +- src/create_torrent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/make_torrent.rst b/docs/make_torrent.rst index 12748e717..860502a4e 100644 --- a/docs/make_torrent.rst +++ b/docs/make_torrent.rst @@ -257,7 +257,7 @@ merkle be opened in clients that don't specifically support merkle torrents. The benefit is that the resulting torrent file will be much smaller and not grow with more pieces. When this option is specified, it is - recommended to have a 16 kiB piece size. + recommended to have a fairly small piece size, say 64 kiB. generate() ---------- diff --git a/src/create_torrent.cpp b/src/create_torrent.cpp index 1cd2a0ba3..f21ed25d3 100644 --- a/src/create_torrent.cpp +++ b/src/create_torrent.cpp @@ -162,7 +162,7 @@ namespace libtorrent } else if (piece_size == 0 && m_merkle_torrent) { - piece_size = 16*1024; + piece_size = 64*1024; } // make sure the size is an even power of 2