[gDesklets] Use gobject.MainLoop in Quartz

Just a quick question: why write a mainloop in python instead of using
something like gobject.MainLoop?

Doing some small tests with a 500ms callback that just increments a
number, the current Quartz implementation kept using over 60% CPU
(Duron 850MHz). Using gobject.MainLoop, without modifying the api,
used almost no CPU, with just about 100k more memory usage (loading
the gobject module).

Anyway, I've attached an patch to modify Quartz to use
gobject.Mainloop. It just replaces Quartz' internals with calls to

Thanks in advance.

PS: Looks like 0.40 will be much better than 0.35.
Lauro ("lmoura" on Freenode)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]