[Twisted-Python] twisted 30% slower than asyncore?

Itamar Shtull-Trauring itamar at itamarst.org
Thu May 1 01:48:01 EDT 2003


On Thu, 1 May 2003 01:29:53 -0400
Jp Calderone <exarkun at intarweb.us> wrote:

>   What I learned from Twisted.names is to not write code that uses
>   Failures
> anywhere except where they are absolutely necessary.  Python
> exceptions might be cheap enough to use as a kind of fancy flow
> control, but failures definitely are not.

My soon to be checked in code changes Failures to be vastly less
expensive if you explicitly pass in an Exception (no pretty tracebacks
stored, but in this case you don't want them anyway.) 

-- 
Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting




More information about the Twisted-Python mailing list