From 93548ce8f451a701ad0967ba705f04fef80aa11a Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 26 Sep 2014 18:12:04 +0200 Subject: [PATCH] table/cuckoo_table_reader.cc: pass func parameter by ref Fix for: [table/cuckoo_table_reader.cc:198]: (performance) Function parameter 'file_data' should be passed by reference. Signed-off-by: Danny Al-Gaaf --- table/cuckoo_table_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/cuckoo_table_reader.cc b/table/cuckoo_table_reader.cc index f8da4e28833..f39900addb4 100644 --- a/table/cuckoo_table_reader.cc +++ b/table/cuckoo_table_reader.cc @@ -191,7 +191,7 @@ class CuckooTableIterator : public Iterator { private: struct BucketComparator { - BucketComparator(const Slice file_data, const Comparator* ucomp, + BucketComparator(const Slice& file_data, const Comparator* ucomp, uint32_t bucket_len, uint32_t user_key_len, const Slice target = Slice()) : file_data_(file_data),