prefetch btree nodes when walking a tree

This commit is contained in:
Joe Thornber
2014-07-25 16:32:59 +01:00
parent 11469a2fda
commit ecb6bee2b2
4 changed files with 17 additions and 6 deletions

View File

@@ -270,6 +270,13 @@ namespace persistent_data {
return bc_.get_nr_blocks();
}
template <uint32_t BlockSize>
void
block_manager<BlockSize>::prefetch(block_address b) const
{
bc_.prefetch(b);
}
template <uint32_t BlockSize>
void
block_manager<BlockSize>::flush() const