Commit c630593449a3dd973e0ebea3c70ee75303fde835

Authored by Ben Klein
1 parent ac231de5

Use sort instead of stable_sort to speed up -eval

Showing 1 changed file with 1 additions and 1 deletions
openbr/core/eval.cpp
@@ -234,7 +234,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const File &csv, const QStrin @@ -234,7 +234,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const File &csv, const QStrin
234 if (impostorCount == 0) qFatal("No impostor scores!"); 234 if (impostorCount == 0) qFatal("No impostor scores!");
235 235
236 // Sort comparisons by simmat_val (score) 236 // Sort comparisons by simmat_val (score)
237 - std::stable_sort(comparisons.begin(), comparisons.end()); 237 + std::sort(comparisons.begin(), comparisons.end());
238 238
239 QList<OperatingPoint> operatingPoints; 239 QList<OperatingPoint> operatingPoints;
240 QList<OperatingPoint> searchOperatingPoints; 240 QList<OperatingPoint> searchOperatingPoints;