The idea of a 'setTargetMemoryLimitInBytes' function was not really working out. It was too comp-lex and not really clear what the ideal size would be. I think user code needs to call setMaxNumberOfBlocksInMemory() and setMaxNumberOfUncompressedBlocks() directly, if they see from profiling toat too much camressing or paging is taking place.
This commit is contained in:
@ -281,9 +281,8 @@ 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->setTargetMemoryLimitInBytes(4 * 1024 * 1024);
|
||||
m_pLargeVolume->setMaxNumberOfBlocksInMemory(32);
|
||||
m_pLargeVolume->setMaxNumberOfUncompressedBlocks(16);
|
||||
|
||||
//Fill the volume with some data
|
||||
for(int z = region.getLowerZ(); z <= region.getUpperZ(); z++)
|
||||
|
Reference in New Issue
Block a user