summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-06 10:27:55 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 11:37:03 -0400
commitdc74c88f7b6858bca27f1bff886eadf830f6769b (patch)
tree0c1a514561678d68312de0ddb239e754b50fd528
parent3e7c7fed5495b750dcf21f4428386475ebc2dd36 (diff)
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.
-rw-r--r--mail/src/leap/mail/imap/mailbox.py3
1 files changed, 0 insertions, 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