Hi everyone,<br><br>I ported my thread based socket code to twisted and have been happy with my results. To re-hash, my code creates a connection then waits for the other end to do something and respond, each connection takes a different amount of time. I went from 3-5 connections completed per second to about 15 per second. Most importantly connections that take a long time have almost no impact on other running connections. The thread stuff would peg the CPU and now I never really venture over 20%. Also testing this code is far easier than testing stuff that directly calls sockets. <br>
<br>Basically its a huge win on every level.<br><br>Thanks for all the help everyone.<br><br><br>Dan<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 8:47 PM, Steve Steiner (listsin) <span dir="ltr">&lt;<a href="mailto:listsin@integrateddevcorp.com">listsin@integrateddevcorp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Cool, please let me know off-list if you&#39;d like a quick review before<br>
&quot;going live.&quot;<br>
<font color="#888888"><br>
S<br>
</font><div><div></div><div class="h5"><br>
On Oct 14, 2009, at 9:30 PM, Dave Peticolas wrote:<br>
<br>
&gt; Steve Steiner (listsin) wrote:<br>
&gt;&gt; On Oct 14, 2009, at 4:55 AM, Laurens Van Houtven wrote:<br>
&gt;&gt;&gt; Personally I&#39;m a big fan of this series of blog posts:<br>
&gt;&gt;&gt; <a href="http://krondo.com/blog/?page_id=1327" target="_blank">http://krondo.com/blog/?page_id=1327</a><br>
&gt;&gt;<br>
&gt;&gt; Very nice, thanks for sharing!<br>
&gt;<br>
&gt; Thank you. I really meant to make a public announcement<br>
&gt; about that on this list, but I was trying to get to<br>
&gt; Deferreds first :)<br>
&gt;<br>
&gt; Anyway...I&#39;m writing an Introduction to Twisted and<br>
&gt; asynchronous programming. Surprise :)<br>
&gt;<br>
&gt; dave<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Twisted-Python mailing list<br>
&gt; <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br>