mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-07 12:10:17 +00:00
Don't call std::sort on sorted vector
std::set is already kept in sorted order.
This commit is contained in:
parent
5e15d526a0
commit
fc9f9cbd8b
@ -30,7 +30,6 @@ namespace pkpy{
|
||||
}
|
||||
float find_hit_score = indices.size() / (float)keys.size();
|
||||
std::vector<uint32_t> 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<indices_vec.size(); j++){
|
||||
int gap = indices_vec[j] - indices_vec[j-1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user