aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-02-15 13:55:04 +0000
committerArne Juul <arnej@verizonmedia.com>2021-02-15 14:16:21 +0000
commitaf9d59c3fece374c5fe61575c67ad49ac5f84bb4 (patch)
treea1851a855e22e406f877bfb405e192232ec1e137 /searchcore/src/tests/proton/matching
parent805a313df05d2f347af321511527e06ea3cae92c (diff)
use size literals in searchcore
Diffstat (limited to 'searchcore/src/tests/proton/matching')
-rw-r--r--searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp3
-rw-r--r--searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/unpacking_iterators_optimizer_test.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp b/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp
index 3093b3acf0f..ccf31032e30 100644
--- a/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp
+++ b/searchcore/src/tests/proton/matching/docid_range_scheduler/docid_range_scheduler_bench.cpp
@@ -4,6 +4,7 @@
#include <vespa/searchcore/proton/matching/docid_range_scheduler.h>
#include <vespa/vespalib/util/rendezvous.h>
#include <vespa/vespalib/util/benchmark_timer.h>
+#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/util/stringfmt.h>
using namespace proton::matching;
@@ -146,7 +147,7 @@ struct SchedulerList {
factory_list.push_back(std::make_unique<TaskSchedulerFactory>(num_threads, 64));
factory_list.push_back(std::make_unique<TaskSchedulerFactory>(num_threads, 256));
factory_list.push_back(std::make_unique<TaskSchedulerFactory>(num_threads, 1024));
- factory_list.push_back(std::make_unique<TaskSchedulerFactory>(num_threads, 4096));
+ factory_list.push_back(std::make_unique<TaskSchedulerFactory>(num_threads, 4_Ki));
factory_list.push_back(std::make_unique<AdaptiveSchedulerFactory>(num_threads, 1000));
factory_list.push_back(std::make_unique<AdaptiveSchedulerFactory>(num_threads, 100));
factory_list.push_back(std::make_unique<AdaptiveSchedulerFactory>(num_threads, 10));
diff --git a/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/unpacking_iterators_optimizer_test.cpp b/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/unpacking_iterators_optimizer_test.cpp
index 9ecbd532389..f81d28fc3c1 100644
--- a/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/unpacking_iterators_optimizer_test.cpp
+++ b/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/unpacking_iterators_optimizer_test.cpp
@@ -6,6 +6,7 @@
#include <vespa/searchlib/query/tree/querybuilder.h>
#include <vespa/vespalib/data/smart_buffer.h>
#include <vespa/vespalib/data/output_writer.h>
+#include <vespa/vespalib/util/size_literals.h>
#include <string>
using namespace proton::matching;
@@ -69,7 +70,7 @@ struct DumpQuery : QueryVisitor {
};
std::string dump_query(Node &root) {
- SmartBuffer buffer(4096);
+ SmartBuffer buffer(4_Ki);
{
OutputWriter writer(buffer, 1024);
DumpQuery dumper(writer, 0);