[kopete-bugs] [Bug 172485] Kopete has full CPU load (freezes) when receiving a long line

Roman Jarosz kedgedev at centrum.cz
Fri Oct 17 23:16:15 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=172485


Roman Jarosz kedgedev centrum cz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Roman Jarosz <kedgedev centrum cz>  2008-10-17 23:16:14 ---
SVN commit 872704 by rjarosz:

Fix bug 172485 Kopete has full CPU load (freezes) when receiving a long line.

The message.setHtmlBody( message.parsedBody() ); which should cache the
emoticons actually didn't cache it and it made it even worse because setHtml is
much slower than parsedBody if we have many emoticons (html tags).

So this patch removes this line and adds caching into the parsedBody function.
The great thing is that we don't have to call setHtml which was the bottleneck.

BUG: 172485



 M  +1 -9      kopete/chatwindow/chatmessagepart.cpp  
 M  +14 -3     libkopete/kopetemessage.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=872704


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


More information about the kopete-bugs mailing list