提交 53aac70a 编写于 作者: Y Yu Kun

fix conflicts


Former-commit-id: d9f9e5bcccd2f7e8691471403051f245d8ea4f41
上级 92aedc55
......@@ -157,18 +157,12 @@ XSearchTask::Execute() {
try {
//step 2: search
auto start = std::chrono::high_resolution_clock::now();
index_engine_->Search(context->nq(), context->vectors(), inner_k, nprobe, output_distence.data(),
output_ids.data());
auto finish = std::chrono::high_resolution_clock::now();
// std::cout << "Knowhere COST: " << std::chrono::duration_cast<std::chrono::duration<double>>(finish - start).count() << "s\n";
// std::cout << "********************************************************\n";
double span = rc.RecordSection("do search for context:" + context->Identity());
context->AccumSearchCost(span);
start = std::chrono::high_resolution_clock::now();
//step 3: cluster result
SearchContext::ResultSet result_set;
......@@ -183,10 +177,6 @@ XSearchTask::Execute() {
context->AccumReduceCost(span);
span = rc.RecordSection("reduce topk for context:" + context->Identity());
finish = std::chrono::high_resolution_clock::now();
// std::cout << "Reduce COST: " << std::chrono::duration_cast<std::chrono::duration<double>>(finish - start).count() << "s\n";
// std::cout << "********************************************************\n";
} catch (std::exception &ex) {
ENGINE_LOG_ERROR << "SearchTask encounter exception: " << ex.what();
context->IndexSearchDone(index_id_);//mark as done avoid dead lock, even search failed
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册