diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-17 12:19:02 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 20:42:24 -0400 |
commit | c649088b39d595303394ef013502ff8b8b1e0dc7 (patch) | |
tree | ee75d05598b56ef22961558596d801f541ac9be1 | |
parent | 0e471dbe8806bcc0fccf97667628b86925bcfd1d (diff) |
remove size calculation until we defer it to thread properly
-rw-r--r-- | mail/src/leap/mail/imap/memorystore.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/src/leap/mail/imap/memorystore.py b/mail/src/leap/mail/imap/memorystore.py index f23a2344..56cd0000 100644 --- a/mail/src/leap/mail/imap/memorystore.py +++ b/mail/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): """ |