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



commit 3adc121289d84ac378498ea2c45aa42760479540
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]