Skip to content

Commit 8da475e

Browse files
speed up 0.6%
1 parent 5d3f63b commit 8da475e

File tree

1 file changed

+2
-1
lines changed
  • ydb/core/tx/columnshard/engines/storage/indexes/bloom_ngramm

1 file changed

+2
-1
lines changed

ydb/core/tx/columnshard/engines/storage/indexes/bloom_ngramm/meta.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ TString TIndexMeta::DoBuildIndexImpl(TChunkedBatchReader& reader) const {
153153
TNGrammBuilder builder(HashesCount);
154154

155155
std::vector<bool> bitsVector(FilterSizeBytes * 8, false);
156+
bool* memAccessor = &bitsVector[0];
156157
const auto predSet = [&](const ui64 hashSecondary) {
157-
bitsVector[hashSecondary % (FilterSizeBytes * 8)] = true;
158+
memAccessor[hashSecondary % (FilterSizeBytes * 8)] = true;
158159
};
159160
for (reader.Start(); reader.IsCorrect();) {
160161
builder.FillNGrammHashes(NGrammSize, reader.begin()->GetCurrentChunk(), predSet);

0 commit comments

Comments
 (0)