[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: KDE 3.0 planned features
From:       Michael =?iso-8859-1?q?H=E4ckel?= <haeckel () kde ! org>
Date:       2001-11-23 15:57:19
[Download RAW message or body]

On Friday 23 November 2001 15:34, Carsten Burghardt wrote:
>
> Sounds good, give it a try.
> Is it possible to check if the header is visible? Because you don't have to
> update if the user doesn't see the header.

You can of course make this change, then it should be faster:

Index: kmfolderimap.cpp
===================================================================
RCS file: /home/kde/kdenetwork/kmail/kmfolderimap.cpp,v
retrieving revision 1.23
diff -u -3 -p -r1.23 kmfolderimap.cpp
--- kmfolderimap.cpp    2001/11/21 20:18:54     1.23
+++ kmfolderimap.cpp    2001/11/23 15:34:33
@@ -675,12 +675,12 @@ void KMFolderImap::slotGetMessagesData(K
       msg->setStatus(flagsToStatus(flags));
       KMFolderImapInherited::addMsg(msg, NULL);
       if (count() > 1) unGetMsg(count() - 1);
-      if ((*it).total > 20 &&
+/*      if ((*it).total > 20 &&
         ((*it).done + 1) * 5 / (*it).total > (*it).done * 5 / (*it).total)
       {
         quiet(FALSE);
         quiet(TRUE);
-      }
+      } */
     }
     (*it).cdata.remove(0, pos);
     (*it).done++;

The QListViewItems are anyway only filled with content, when they are 
displayed. But at least depending on the sort order it can happen, that the 
new items are inserted on the top.
Also a part of the problem might be, that sorting and threading take more 
time, if they are updated after every message. I don't know.
Another problem are the different colours of the odd and even items. There it 
is O(n^2) if updated after every message and just O(n) if done once.

Authors of other mail clients (at least Outlook, Mozilla and Evolution) 
probably know, why they don't display the headers, before they are all 
retrieved.

I think about it and try to find an optimal solution.
Any mathematics expert around? :-)

Regards,
Michael Häckel
_______________________________________________
kmail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic