[Twisted-Python] thread performance under twisted

Jean-Paul Calderone exarkun at divmod.com
Mon Nov 19 07:45:21 EST 2007

On Sun, 18 Nov 2007 22:53:58 -0800 (PST), abbas ali chezgi <chezgi at yahoo.com> wrote:
>hello dears,
>i am working on a VPN project using twisted.
>the main section for tunneling data written in C API for performance.
>but handshaking is done in twisted and when client authenticated one thread
>is created using deferedToThread and all data encryption and exchange will be done in
>C code.
>my problem is performance.
>how can i tune system (twisted core and threads) to allow created threads run
>with high priority than twisted core?
>how can i profile my threads?

This is more of a Python question than a Twisted question.  Python doesn't
support thread priorities.  Python has a profiler, but not one which does
anything special with threads.


More information about the Twisted-Python mailing list