Skip to content

Commit

Permalink
remove repetitive operations in filter_by_acero
Browse files Browse the repository at this point in the history
  • Loading branch information
Elssky committed Sep 24, 2024
1 parent e16213c commit f78f0f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/src/graphar/high-level/graph_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ Result<std::vector<IdType>> VerticesCollection::filter_by_acero(
std::vector<int> indices;
const int TOT_ROWS_NUM = vertex_num_;
const int CHUNK_SIZE = vertex_info_->GetChunkSize();
const int TOT_LABEL_NUM = labels_.size();
const int TESTED_LABEL_NUM = filter_labels.size();

std::vector<int> tested_label_ids;
for (const auto& filter_label : filter_labels) {
auto it = std::find(labels_.begin(), labels_.end(), filter_label);
Expand Down

0 comments on commit f78f0f2

Please sign in to comment.