Removing explicit functions to control the number of compressed and uncompressed blocks in memory, and letting the user set a memory limit instead.

This commit is contained in:
Daviw Williams
2013-07-04 16:23:58 +02:00
parent 26f512eba7
commit bd60f34bd7
5 changed files with 61 additions and 30 deletions

View File

@ -281,8 +281,9 @@ TestVolume::TestVolume()
m_pSimpleVolume = new SimpleVolume<int32_t>(region);
m_pLargeVolume = new LargeVolume<int32_t>(region, m_pCompressor, m_pFilePager, 32);
m_pLargeVolume->setMaxNumberOfBlocksInMemory(32);
m_pLargeVolume->setMaxNumberOfUncompressedBlocks(16);
//m_pLargeVolume->setMaxNumberOfBlocksInMemory(32);
//m_pLargeVolume->setMaxNumberOfUncompressedBlocks(16);
m_pLargeVolume->setTargetMemoryLimitInBytes(4 * 1024 * 1024);
//Fill the volume with some data
for(int z = region.getLowerZ(); z <= region.getUpperZ(); z++)