[Twisted-Python] Twisted Performance

Steve Steiner (listsin) listsin at integrateddevcorp.com
Tue Oct 13 22:34:56 MDT 2009


On Oct 13, 2009, at 10:44 PM, Daniel Griffin wrote:

> Hi,
>
> I am new to twisted and have been having trouble finding out  
> information about twisted's performance. I have a fairly simple  
> setup where I need to open a bunch of TCP connections that last for  
> varying amounts of time but dont do much. I have tried using threads 
> (got GILed to death) and Processes(even worse). Now I am looking at  
> either making a system to start the connection and send info to have  
> the remote point "phone home" when its done, then closing the  
> connection or using something like Twisted.
>
> my socket conversation:
> 	my app -> send a message that triggers an action on the other end
> 	other end -> recv's message does action(can take any amount of time)
> 	other end - > sends results back to my app

Twisted Documentation: Writing Clients

I would suggest deferring worrying at this point. (;-b).

Twisted can almost certainly handle it.

Do the simplest thing possible, see how it performs, then worry as  
necessary.

S

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20091014/43df3a5f/attachment.html>


More information about the Twisted-Python mailing list