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:
@ -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++)
|
||||
|
Reference in New Issue
Block a user