allocates 10 disk buffers at a time instead of 32. Fixed bug where connection candidates would be too high

This commit is contained in:
Arvid Norberg
2009-05-06 07:06:26 +00:00
parent 41a9b88189
commit ff3db926fb
6 changed files with 36 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ namespace libtorrent
: m_block_size(block_size)
, m_in_use(0)
#ifndef TORRENT_DISABLE_POOL_ALLOCATOR
, m_pool(block_size)
, m_pool(block_size, 10)
#endif
{
#if defined TORRENT_DISK_STATS || defined TORRENT_STATS