summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-17 12:19:02 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 20:42:24 -0400
commite87dba3288345ba28dce5a844a7faf9f5a5a0b9c (patch)
tree59a5a138b0a85715c936890e39b49c40bc6b5669 /src
parentdaa0c9fd588c61f2e440453be83af137779ce207 (diff)
remove size calculation until we defer it to thread properly
Diffstat (limited to 'src')
-rw-r--r--src/leap/mail/imap/memorystore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/mail/imap/memorystore.py b/src/leap/mail/imap/memorystore.py
index f23a234..56cd000 100644
--- a/src/leap/mail/imap/memorystore.py
+++ b/src/leap/mail/imap/memorystore.py
@@ -364,9 +364,11 @@ class MemoryStore(object):
# Update memory store size
# XXX this should use [mbox][uid]
- key = mbox, uid
- self._sizes[key] = size.get_size(self._fdoc_store[key])
+ # TODO --- this has to be deferred to thread,
# TODO add hdoc and cdocs sizes too
+ # it's slowing things down here.
+ #key = mbox, uid
+ #self._sizes[key] = size.get_size(self._fdoc_store[key])
def purge_fdoc_store(self, mbox):
"""