[Bug 244503] selecting a folder is slow

Volker Krause vkrause at kde.org
Wed Jul 14 15:15:02 BST 2010


https://bugs.kde.org/show_bug.cgi?id=244503


Volker Krause <vkrause at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vkrause at kde.org




--- Comment #2 from Volker Krause <vkrause kde org>  2010-07-14 16:14:59 ---
Thomas, could you please try with the following patch and let me know how much
faster it is for you then. It disabled Nepomuk access in the message list,
which gives me a 3x speedup without having Nepomuk running at all, so likely
more if there has been a working Nepomuk before. This is of course not the
solution to this problem, but would indicate that I'm looking in the right
direction to fix this, since I cannot confirm the numbers posted here on my
system, loading 10k messages takes only ~2.5sec here.

Index: core/messageitem.cpp
===================================================================
--- core/messageitem.cpp        (revision 1149821)
+++ core/messageitem.cpp        (working copy)
@@ -232,6 +232,7 @@
   // TODO: The tag pointers here could be shared between all items, there
really is no point in
   //       creating them for each item that has tags

+#if 0
   const Nepomuk::Resource resource( mNepomukResourceUri );
   const QList< Nepomuk::Tag > nepomukTagList = resource.tags();
   if ( !nepomukTagList.isEmpty() ) {
@@ -267,6 +268,7 @@
       mTagList->append( messageListTag );
     }
   }
+#endif
 }

 QList<MessageItem::Tag*> MessageItem::Private::getTagList() const
@@ -300,12 +302,14 @@
   if ( d->mAnnotationStateChecked )
     return d->mHasAnnotation;

+#if 0
   Nepomuk::Resource resource( d->mNepomukResourceUri );
   if ( resource.hasProperty( QUrl( Nepomuk::Resource::descriptionUri() ) ) ) {
     d->mHasAnnotation = !resource.description().isEmpty();
   } else {
     d->mHasAnnotation = false;
   }
+#endif

   d->mAnnotationStateChecked = true;
   return d->mHasAnnotation;

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list