[Bug 181117] Kontact is a CPU hog
Cristiano da Cunha Duarte
cunha17 at gmail.com
Fri Feb 27 20:45:19 GMT 2009
https://bugs.kde.org/show_bug.cgi?id=181117
Cristiano da Cunha Duarte <cunha17 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cunha17 at gmail.com
--- Comment #14 from Cristiano da Cunha Duarte <cunha17 gmail com> 2009-02-27 21:45:15 ---
[WORKAROUND]
Since I only use KDE at my job, I really need Kontact to work. So I downloaded
the source RPM and patched it so it stops the indexing process.
Now I can work again! No more 15 minutes delays every 16 minutes!
I know the workaround is not a FIX (and it an ungly solution) but since I don't
really need the full text search, I just disabled it and use a filesystem
"flag" to turn it on whenever I need it.
--- BUILD/kdepim-4.2.0/kmail/kmfoldersearch.cpp 2008-11-19 08:19:06.000000000
-0200
+++ kmfoldersearch.cpp 2009-02-20 19:54:04.000000000 -0300
@@ -252,7 +252,11 @@
void KMSearch::slotProcessNextBatch()
{
- if ( !running() ) {
+ char *flag = "/tmp/kontact.reindex";
+ struct stat buffer;
+ int reindex = (stat(flag, &buffer) == 0);
+
+ if ( !running() || !reindex ) {
return;
}
@@ -273,6 +277,9 @@
} else {
--mRemainingFolders;
}
+ if (mRemainingFolders==0) {
+ unlink(flag);
+ }
mProcessNextBatchTimer->start( 0 );
return;
}
--
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