docker-offlineimap/offlineimap
Sebastian Spaeth ca012d3a81 Implement more efficient functions for the MappedUID case
We are calling getmessagelist() internally a lot, e.g. just to check if
a UID exists (from uidexist()). This is a very expensive operation in
the UIDMapped case, as we reconstruct the whole messagelist dict every
single time, involving lots of copying etc.

So we provide more efficient implementations for the uidexists()
getmessageuidlist() and getmessagecount() functions that are fast in the
UIDMapped case. This should solve the performance regression that was
recently observed in the Mapped UID case.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Reviewed-and-tested-by: Vincent Beffara <vbeffara@ens-lyon.fr>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-03-28 17:52:22 +02:00
..
folder Implement more efficient functions for the MappedUID case 2011-03-28 17:52:22 +02:00
repository Merge branch 'master' into next 2011-03-15 19:28:02 +01:00
ui cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
__init__.py v6.3.2.1 2011-03-16 20:46:18 +01:00
accounts.py Always logout() on imaplib2 objects, even during exceptions 2011-03-25 18:26:22 +01:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
imaplib2.py Import newest version of imaplib2 2011-03-14 19:51:56 +01:00
imaplibutil.py Get rid of the UsefulIMAP4 classes 2011-03-23 20:00:35 +01:00
imapserver.py Get rid of the UsefulIMAP4 classes 2011-03-23 20:00:35 +01:00
imaputil.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
init.py Import imaplib2 instead of imaplib 2011-03-14 19:51:56 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
threadutil.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00