[Twisted-Python] Re: GUI responsiveness

Jasper jasper at peak.org
Thu Sep 15 11:41:08 MDT 2005


Bob Ippolito wrote:

> On Sep 14, 2005, at 7:35 PM, Jasper wrote:
>
>> I guess I'm just not seeing what's so great about  
>> threadedselectreactor, except perhaps that it's better than wxreactor.
>
>
> It's better than writing your own reactor for every foreign event  
> loop you're interested in, and it's generic enough to integrate with  
> ANYTHING that has a thread-safe way to send a message to the main  
> runloop (basically, all of them can do that).  Your pygame+pyui loop  
> is probably less responsive to either network or user events, or  
> perhaps instead chews more CPU than a threadedselectreactor alternative. 


Ok, so it's perhaps more efficient.  CPU and user events are fine, 
although I'm not sure about network response.  I imagine the pauses I'm 
seeing are due to sending large data chunks though, which I don't think 
threadedselectreactor addresses.

-Jasper




More information about the Twisted-Python mailing list