mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-08 19:26:45 +00:00
prefetch bloom filter data block for L0 files
Summary: as title Test Plan: db_bench the initial result is very promising. I will post results of complete runs Reviewers: dhruba, haobo, sdong, igor Reviewed By: sdong Subscribers: leveldb Differential Revision: https://reviews.facebook.net/D18867
This commit is contained in:
@@ -610,6 +610,13 @@ Status PlainTableReader::Next(uint32_t* offset, ParsedInternalKey* key,
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
void PlainTableReader::Prepare(const Slice& target) {
|
||||
if (enable_bloom_) {
|
||||
uint32_t prefix_hash = GetSliceHash(GetPrefix(target));
|
||||
bloom_.Prefetch(prefix_hash);
|
||||
}
|
||||
}
|
||||
|
||||
Status PlainTableReader::Get(const ReadOptions& ro, const Slice& target,
|
||||
void* arg,
|
||||
bool (*saver)(void*, const ParsedInternalKey&,
|
||||
|
||||
Reference in New Issue
Block a user