diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-15 11:51:17 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-15 11:51:17 +0000 |
commit | bc751bbc305da60c730f0198a4f024b7d7dc0dd4 (patch) | |
tree | f8a8263eac83104e77e622338821f8b4c1a84fa8 /searchlib | |
parent | 3138973345b424dc8cffdeaeef38ef427983b161 (diff) |
No need to special handle the first.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/common/bitvector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<OrParts> 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; } |