[kdelibs] kdecore/sonnet: Add TODO for someone who would have time to make things faster

David Faure faure at kde.org
Wed Aug 3 17:46:18 UTC 2011


Git commit efb91dbe43a7f1882b56496187fce57e66d181f4 by David Faure.
Committed on 03/08/2011 at 19:44.
Pushed by dfaure into branch 'master'.

Add TODO for someone who would have time to make things faster
CCMAIL: kde-optimize at kde.org

M  +3    -0    kdecore/sonnet/globals.cpp

http://commits.kde.org/kdelibs/efb91dbe43a7f1882b56496187fce57e66d181f4

diff --git a/kdecore/sonnet/globals.cpp b/kdecore/sonnet/globals.cpp
index ef57aa7..bf4f504 100644
--- a/kdecore/sonnet/globals.cpp
+++ b/kdecore/sonnet/globals.cpp
@@ -83,6 +83,9 @@ QString detectLanguage(const QString &sentence)
     return max.key();
 }
 
+// SLOW!!!
+// TODO: cache this value! And then use some dbus signal to notify all apps when
+// changing the default language changes.
 QString defaultLanguageName()
 {
   Loader *loader = Loader::openLoader();


More information about the Kde-optimize mailing list