More DataEngines questions

Aaron J. Seigo aseigo at kde.org
Sun Jan 4 18:46:05 CET 2009


On Sunday 04 January 2009, Alex Merry wrote:
> On Sunday 04 January 2009 11:29:11 Luca Beltrame wrote:
> > On domenica 4 gennaio 2009 12:03:21 Aaron J. Seigo wrote:
> > - User puts in the term "foo" as in search term;
> > - The term "foo" is used as source in the DataEngine, which then fetches
> > the information;
> > - Said information is then presented to the user.

exactly ..

> > Am I correct? And if so, does a DataEngine keep in memory the result of
> > old sources? (asking to evaluate the performnce and resource
> > consumption).
>
> That's right.  The source is kept around for as long as there are applets
> requesting it.  Once all applets have disconnected from the source, it is
> discarded.

... automatically, of course. the DataEngine author need write no code for 
this. if you wish to do further cacheing, you can work around this feature, 
but it's generally not the common case.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090104/baa573c1/attachment.sig 


More information about the Plasma-devel mailing list