evolution r35907 - trunk/mail
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35907 - trunk/mail
- Date: Tue, 5 Aug 2008 13:38:05 +0000 (UTC)
Author: sragavan
Date: Tue Aug 5 13:38:05 2008
New Revision: 35907
URL: http://svn.gnome.org/viewvc/evolution?rev=35907&view=rev
Log:
2008-08-05 Srinivasa Ragavan <sragavan novell com>
* mail/message-list.c: Fix a performance issue, where we can just go
by the presence than the exact count.
Modified:
trunk/mail/ChangeLog
trunk/mail/message-list.c
Modified: trunk/mail/message-list.c
==============================================================================
--- trunk/mail/message-list.c (original)
+++ trunk/mail/message-list.c Tue Aug 5 13:38:05 2008
@@ -3645,6 +3645,9 @@
struct _glibsuxcrap *y = x;
CamelMessageInfo *mi;
+ if(y->count)
+ return;
+
mi = camel_folder_get_message_info(y->folder, key);
if (mi) {
y->count++;
@@ -3652,7 +3655,7 @@
}
}
-/* returns number of hidden messages */
+/* returns 0 or 1 depending if there are hidden messages */
unsigned int
message_list_hidden(MessageList *ml)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]