dcop services

Ian Reinhart Geiser geiseri at yahoo.com
Sat Oct 18 05:02:07 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 12 October 2003 08:13 pm, George Staikos wrote:
> On Friday 10 October 2003 08:08, John Ratke wrote:
>
> > It would be nice if those numbers were lower.  I only have 256 mb
> > myself, and I was thinking about taking a look and optimizing the RAM
> > usage of kweatherservice, but I haven't had a chance yet.
> >
> > In any event,  are you proposing that each service have a watchdog type
> > timer that would time out and exit the service?  Or would the dcop
> > system handle the timeout knowing that no services have been requested?
> > What would the timeout be?  Half an hour?
>
> 
>   I don't know what scheme is best, but we have to have one.  Tying up ram
> 
 like this is a bad idea, and really quite annoying.
Since im basicly the author of both, and they are based off the same basic 
template, it would be trivial to add a timeout from a last access point of 
view.  

Basicly what im looking at is in the service, i can reset a timer of (some 
number of minutes) every time a dcop function is accessed.  Then after that 
timeout exit the service.

I have toyed with this for a while, but was wanting to attack this problem 
more in the dcop server end of things.    Unfortunately this gets into the 
same braindamages of COM reference counts and other pains...  Java has shown 
us that timer based GC is crude but effective, so we can maby got that route 
for now...

ill try to get the code in this weekend.

Cheers
	-ian reinhart geiser
- -- 
- --:Ian Reinhart Geiser <geiseri at yahoo.com>
- --:Public Key: http://geiseri.myip.org/~geiseri/publickey.asc
- --:Public Calender: http://geiseri.myip.org/~geiseri/publicevents.ics
- --:Jabber: geiseri at geiseri.myip.org
- --:Be an optimist -- at least until they start moving animals in 
- --:   pairs to Cape Canaveral. ~ Source Unknown
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/kLtDPy62TRm8dvgRAu0UAKC0eGSgfacT697ChU6/U1yFZDnBdwCgnS5E
AI+YRxu2HoEJ1+TatsgJcBo=
=hjBU
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list