From 9876d74e503df64eb9e82e540ca41fcf593ebf64 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Fri, 6 Dec 2024 16:54:05 -0500 Subject: Adjusted query result interfaces Now, the vector<> is part of the user-defined type, not required by the framework. This should allow for more flexibility in either using alternative containers, or for more sensible implementations of queries with single value results (like range count). --- benchmarks/include/standard_benchmarks.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'benchmarks/include') diff --git a/benchmarks/include/standard_benchmarks.h b/benchmarks/include/standard_benchmarks.h index 797b0c5..d3408c1 100644 --- a/benchmarks/include/standard_benchmarks.h +++ b/benchmarks/include/standard_benchmarks.h @@ -55,17 +55,15 @@ static void run_queries(DE *extension, std::vector &quer itr++; } }else if constexpr (std::is_same_v) { - size_t tot = 0; auto ptr = extension->find(queries[i].lower_bound); while (ptr != extension->end() && ptr->first <= queries[i].upper_bound) { - tot++; ++ptr; } } else { auto q = queries[i]; auto res = extension->query(std::move(q)); if constexpr (!BSM) { - auto result = res.get(); + [[maybe_unused]] auto result = res.get(); #ifdef BENCH_PRINT_RESULTS fprintf(stdout, "\n\n"); for (int i=result.size()-1; i>=0; i--) { @@ -111,7 +109,7 @@ static void run_static_queries(S *shard, std::vector &qu std::vector local_queries = {Q::local_preproc(shard, q)}; Q::distribute_query(q, local_queries, nullptr); - auto res = Q::local_query(shard, local_queries[0]); + [[maybe_unused]] auto res = Q::local_query(shard, local_queries[0]); #ifdef BENCH_PRINT_RESULTS fprintf(stdout, "\n\n"); -- cgit v1.2.3