Skip to content

Commit

Permalink
table/bloom_block.*: pass func parameter by reference
Browse files Browse the repository at this point in the history
[table/bloom_block.h:29]: (performance) Function parameter
 'keys_hashes' should be passed by reference.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed Sep 30, 2014
1 parent 53910dd commit 8ce050b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion table/bloom_block.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace rocksdb {

void BloomBlockBuilder::AddKeysHashes(const std::vector<uint32_t> keys_hashes) {
void BloomBlockBuilder::AddKeysHashes(const std::vector<uint32_t>& keys_hashes) {
for (auto hash : keys_hashes) {
bloom_.AddHash(hash);
}
Expand Down
2 changes: 1 addition & 1 deletion table/bloom_block.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BloomBlockBuilder {

uint32_t GetNumBlocks() const { return bloom_.GetNumBlocks(); }

void AddKeysHashes(const std::vector<uint32_t> keys_hashes);
void AddKeysHashes(const std::vector<uint32_t>& keys_hashes);

Slice Finish();

Expand Down

0 comments on commit 8ce050b

Please sign in to comment.