[Twisted-Python] Mixing Python threads and Twisted code

Alexandre Quessy alexandre at quessy.net
Sat Dec 6 11:15:39 MST 2014


Hello everyone,

What happens if some code starts a thread while I am using Twisted's
reactor?

Here is what I need to use:
https://github.com/ekulyk/PythonPusherClient/blob/master/pusherclient/connection.py#L12

This thread polls some socket to handle received TCP messages. It appears
it has been very slow in production. Is it this mix of twisted and
non-twisted threading that causes this brutal slowdown? If so, how can I
easily speed it up without having to twistify the library I need to use?
(and practically rewrite it)

Thank you,
-- 
Alexandre Quessy - 亚历山大 - ألكسندر
http://alexandre.quessy.net - Artiste en nouveaux médias
http://perte-de-signal.org - Membre de Perte de signal
http://sourcelibre.net - Développement logiciel et conception de sites Web
http://labalab.ca - Impliqué dans LabàLab - communauté de pratique en arts
numériques
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20141206/76657c9f/attachment.html>


More information about the Twisted-Python mailing list