[geary/wip/search-fixes: 27/27] Use a list when producing search results to preserve ordering



commit b47896fbcceb126d9d63ce8fe03cdd04483a7412
Author: Michael Gratton <mike vee net>
Date:   Tue Aug 6 21:23:10 2019 +1000

    Use a list when producing search results to preserve ordering
    
    This along with the last few commits greatly speed up search folder
    loading.

 src/engine/imap-db/imap-db-account.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/engine/imap-db/imap-db-account.vala b/src/engine/imap-db/imap-db-account.vala
index d4ce7818..c542606f 100644
--- a/src/engine/imap-db/imap-db-account.vala
+++ b/src/engine/imap-db/imap-db-account.vala
@@ -580,7 +580,8 @@ private class Geary.ImapDB.Account : BaseObject {
         string? search_ids_sql = get_search_ids_sql(search_ids);
 
         bool strip_greedy = query.should_strip_greedy_results();
-        Gee.Set<EmailIdentifier> matching_ids = new Gee.HashSet<EmailIdentifier>();
+        Gee.List<EmailIdentifier> matching_ids =
+            new Gee.LinkedList<EmailIdentifier>();
         Gee.Map<EmailIdentifier,Gee.Set<string>>? search_matches = null;
 
         yield db.exec_transaction_async(Db.TransactionType.RO, (cx) => {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]