Skip to content

Commit

Permalink
Fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Oct 19, 2024
1 parent 053d958 commit 6dddf82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/engine/GroupBy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,11 @@ cppcoro::generator<Result::IdTableVocabPair> GroupBy::computeResultLazily(
lazyGroupBy.processBlock(evaluationContext, lastBlockStart, idTable.size());
if (!singleIdTable && !resultTable.empty()) {
currentLocalVocab.mergeWith(storedLocalVocabs);
Result::IdTableVocabPair pair{std::move(resultTable),
std::move(currentLocalVocab)};
co_yield pair;
// Re-use buffer if not moved out
resultTable = std::move(pair.idTable_);
Result::IdTableVocabPair outputPair{std::move(resultTable),
std::move(currentLocalVocab)};
co_yield outputPair;
// Reuse buffer if not moved out
resultTable = std::move(outputPair.idTable_);
resultTable.clear();
currentLocalVocab = LocalVocab{};
storedLocalVocabs.clear();
Expand Down
2 changes: 1 addition & 1 deletion src/engine/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ cppcoro::generator<Result::IdTableVocabPair> Service::computeResultLazily(
Result::IdTableVocabPair pair{std::move(idTable),
std::move(localVocab)};
co_yield pair;
// Move back to re-use buffer if not moved out.
// Move back to reuse buffer if not moved out.
idTable = std::move(pair.idTable_);
idTable.clear();
localVocab = LocalVocab{};
Expand Down
2 changes: 1 addition & 1 deletion test/ResultTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::vector<cppcoro::generator<Result::IdTableVocabPair>> getAllSubSplits(
if (splitIndex < split.size() && split[splitIndex] == i) {
Result::IdTableVocabPair pair{std::move(subSplit), LocalVocab{}};
co_yield pair;
// Move back if not moved out to re-use buffer.
// Move back if not moved out to reuse buffer.
subSplit = std::move(pair.idTable_);
subSplit.clear();
++splitIndex;
Expand Down

0 comments on commit 6dddf82

Please sign in to comment.