From bc751bbc305da60c730f0198a4f024b7d7dc0dd4 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 15 Jan 2024 11:51:17 +0000 Subject: No need to special handle the first. --- searchlib/src/vespa/searchlib/common/bitvector.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'searchlib') diff --git a/searchlib/src/vespa/searchlib/common/bitvector.cpp b/searchlib/src/vespa/searchlib/common/bitvector.cpp index cee5801beb9..9deadf2e0bb 100644 --- a/searchlib/src/vespa/searchlib/common/bitvector.cpp +++ b/searchlib/src/vespa/searchlib/common/bitvector.cpp @@ -78,9 +78,8 @@ BitVector::parallellOr(vespalib::ThreadBundle & thread_bundle, vespalib::ConstAr std::vector parts; parts.reserve(thread_bundle.size()); bits_per_thread = (bits_per_thread/ALIGNMENT_BITS) * ALIGNMENT_BITS; - parts.emplace_back(vectors, 0, bits_per_thread); - BitVector::Index offset = bits_per_thread; - for (uint32_t i(1); (i + 1) < thread_bundle.size(); i++) { + BitVector::Index offset = 0; + for (uint32_t i(0); (i + 1) < thread_bundle.size(); i++) { parts.emplace_back(vectors, offset, bits_per_thread); offset += bits_per_thread; } -- cgit v1.2.3