KActivities library optimizations
Ivan Čukić
ivan.cukic at kde.org
Mon Sep 3 07:26:27 UTC 2012
Hi,
The latest master of libkactivities caches and pre-fetches some stuff like the
currentActivity, list of activities, list of running activities, activity
names and icons, to minimise the amount of d-bus related locks*.
What do you think of the idea to go one step further, and instead of accessing
the data via d-bus, to only use d-bus for signalling the changes, but to use
QSharedMemory for actual data access (read-only from the library).
This would remove any blocking while accessing the data, unless I'm missing
some important fact about QSharedMemory which makes it undesired.
(I don't see it much in our code)
Cheerio,
Ivan
* requested by Thomas Luebking, for KWin
--
Make your code readable. Pretend the next person who looks
at your code is a psychopath and they know where you live.
-- Philip Wadler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120903/e690a713/attachment.sig>
More information about the Plasma-devel
mailing list