Re: Extreme memory usage for gnome-panel related apps



On Sun, 2007-12-02 at 21:56 +0100, Mikkel Kamstrup Erlandsen wrote:

> 
> So how would this be done? One Python thread to run each applet in?

No, every applet runs in the same thread, using the same main loop.
If the applet is written correctly, it does everything that potentially
blocks (say retrieving data over HTTP) already in another thread or
otherwise asynchronously.  Thus it would be safe to have multiple
programs sharing a mainloop.

>  Assuming this then it is pretty far from feasible. Python and GTK
> threading is not exactly the nicest thing to work with. The slightest
> glitch and all apps in the loop would block. 

Yes, it does mean that a bug in one applet would potentially affect
others.  But the applet was already buggy to begin with, because its UI
already blocked.




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