diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-27 00:50:35 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-27 00:50:35 -0400 |
commit | a2922bb8ba3b9388380f2b48c426680f23298512 (patch) | |
tree | 081197989a27e1d69cb42e12bac1eb40df33140a /qdeduper | |
parent | 617adf4090fbaac3a3b2d943548eeb6516fb9bdd (diff) | |
download | deduper-a2922bb8ba3b9388380f2b48c426680f23298512.tar.xz |
1000x performance improvement for loading database.
So huge that it doesn't even sound real. I need to learn to write
proper sql.
Diffstat (limited to 'qdeduper')
-rw-r--r-- | qdeduper/sigdb_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qdeduper/sigdb_qt.cpp b/qdeduper/sigdb_qt.cpp index aff7312..a7f1680 100644 --- a/qdeduper/sigdb_qt.cpp +++ b/qdeduper/sigdb_qt.cpp @@ -77,7 +77,7 @@ void SignatureDB::create_priv_struct() distmap[std::make_pair(dupe.id1, dupe.id2)] = dupe.distance; auto gps = sdb->groups_get(); - gps.erase(std::remove_if(gps.begin(), gps.end(), [](std::vector<size_t> v){ return v.size() < 2; }), gps.end()); + //gps.erase(std::remove_if(gps.begin(), gps.end(), [](std::vector<size_t> v){ return v.size() < 2; }), gps.end()); this->groups = std::move(gps); } |