docker-offlineimap/offlineimap/folder
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
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py Merge branch 'ss/uidmaps' into next 2011-03-16 18:05:35 +01:00
Gmail.py Remove some unneeded imports 2011-03-14 19:51:52 +01:00
IMAP.py Fixed bug: wrong number of arguments to debug() [IMAP.py]. 2011-03-28 16:49:21 +02:00
LocalStatus.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
Maildir.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
UIDMaps.py Implement more efficient functions for the MappedUID case 2011-03-28 17:52:22 +02:00