From dc74c88f7b6858bca27f1bff886eadf830f6769b Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 6 Feb 2014 10:27:55 -0400 Subject: do not defer fetches to thread I think this is not a good idea now that all is done in the memstore, overhead from passing the data to thread and gathering the result seems to be much higher than just retreiving the data we need from the memstore. --- mail/src/leap/mail/imap/mailbox.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mail/src/leap/mail/imap/mailbox.py b/mail/src/leap/mail/imap/mailbox.py index f319bf07..1fa05542 100644 --- a/mail/src/leap/mail/imap/mailbox.py +++ b/mail/src/leap/mail/imap/mailbox.py @@ -541,7 +541,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser): seq_messg = set_asked.intersection(set_exist) return seq_messg - @deferred_to_thread def fetch(self, messages_asked, uid): """ Retrieve one or more messages in this mailbox. @@ -580,7 +579,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser): result = ((msgid, getmsg(msgid)) for msgid in seq_messg) return result - @deferred_to_thread def fetch_flags(self, messages_asked, uid): """ A fast method to fetch all flags, tricking just the @@ -624,7 +622,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser): msgid, all_flags.get(msgid, tuple()))) for msgid in seq_messg) return result - @deferred_to_thread def fetch_headers(self, messages_asked, uid): """ A fast method to fetch all headers, tricking just the -- cgit v1.2.3