[Akonadi] [Bug 334218] synchronizations of large folders with filesystem contents hogs a Sandybridge core for minutes stat()ing every file in it
Martin Steigerwald
Martin at Lichtvoll.de
Fri May 2 16:39:42 BST 2014
https://bugs.kde.org/show_bug.cgi?id=334218
--- Comment #5 from Martin Steigerwald <Martin at Lichtvoll.de> ---
Testing with:
diff --git a/resources/maildir/libmaildir/maildir.cpp
b/resources/maildir/libmaildir/maildir.cpp
index 9bd3802..36166ed 100644
--- a/resources/maildir/libmaildir/maildir.cpp
+++ b/resources/maildir/libmaildir/maildir.cpp
@@ -106,12 +106,14 @@ public:
QStringList listNew() const
{
QDir d( path + QString::fromLatin1( "/new" ) );
+ d.setSorting(QDir::NoSort);
return d.entryList( QDir::Files );
}
QStringList listCurrent() const
{
QDir d( path + QString::fromLatin1( "/cur" ) );
+ d.setSorting(QDir::NoSort);
return d.entryList( QDir::Files );
}
which disables QDir sorting which was so prominent in callgrind traces. I get
the impression it helps the bit, but it does not seem to fix all of the
performance issue. Need to take more time to check more thoroughly.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list