[Twisted-Python] Twisted Performance

Daniel Griffin dgriff1 at gmail.com
Sat Oct 24 15:47:33 EDT 2009


Hi everyone,

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.

Basically its a huge win on every level.

Thanks for all the help everyone.


Dan

On Wed, Oct 14, 2009 at 8:47 PM, Steve Steiner (listsin) <
listsin at integrateddevcorp.com> wrote:

> Cool, please let me know off-list if you'd like a quick review before
> "going live."
>
> S
>
> On Oct 14, 2009, at 9:30 PM, Dave Peticolas wrote:
>
> > Steve Steiner (listsin) wrote:
> >> On Oct 14, 2009, at 4:55 AM, Laurens Van Houtven wrote:
> >>> Personally I'm a big fan of this series of blog posts:
> >>> http://krondo.com/blog/?page_id=1327
> >>
> >> Very nice, thanks for sharing!
> >
> > Thank you. I really meant to make a public announcement
> > about that on this list, but I was trying to get to
> > Deferreds first :)
> >
> > Anyway...I'm writing an Introduction to Twisted and
> > asynchronous programming. Surprise :)
> >
> > dave
> >
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20091024/a374cee7/attachment.htm 


More information about the Twisted-Python mailing list