[kopete-bugs] [Bug 246785] New: [PATCH] Statistics plugin make the UI lock for a while when going offline
Maciek Weksej
katoda at jabster.pl
Thu Aug 5 11:52:13 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=246785
Summary: [PATCH] Statistics plugin make the UI lock for a while
when going offline
Product: kopete
Version: 1.0.0
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Statistics plugin
AssignedTo: kopete-bugs at kde.org
ReportedBy: katoda at jabster.pl
Created an attachment (id=49830)
--> (http://bugs.kde.org/attachment.cgi?id=49830)
Patch
Version: 1.0.0 (using KDE 4.4.5)
OS: Linux
When having 100+ contacts and going offline, UI locks for about 3-4 seconds.
Reproducible: Always
Steps to Reproduce:
Go online, and then go offline.
Actual Results:
UI locks for about 3-4 seconds
Expected Results:
UI doesn't lock.
It's caused by many onlineStatusChanged() method calls, and each call invokes a
DB query, that is performed by UI thread. My patch creates an additional thread
for Statistics Plugin that is responsible for querying the database. UI thread
leaves messages in a blocking queue, and DB thread queries the database.
--
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 kopete-bugs
mailing list