From fc9f9cbd8b96ff657664815dab5ebc8f44528b37 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Thu, 23 Feb 2023 16:28:07 -0500 Subject: [PATCH] Don't call std::sort on sorted vector std::set is already kept in sorted order. --- src/namedict.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/namedict.h b/src/namedict.h index 8b9b40b8..9e04002d 100644 --- a/src/namedict.h +++ b/src/namedict.h @@ -30,7 +30,6 @@ namespace pkpy{ } float find_hit_score = indices.size() / (float)keys.size(); std::vector indices_vec(indices.begin(), indices.end()); - std::sort(indices_vec.begin(), indices_vec.end()); float find_miss_score = indices.size(); for(int j=1; j