[Twisted-Python] Twisted and the Posh Module

March 14, 2005
5:37 p.m.
Has anyone tried playing with Twisted and the posh module? I need to do some CPU-intensive stuff inside the reactor, which unfortunately holds on to the GIL. I was thinking of just making a deferToPosh() type of method in the spirit of deferToThread(), but forking on each operation would be pretty expensive. Which brings up the question of having process pools. Has anyone done anything like this? I don't really need any interaction between the worker processes and Twisted, so in theory I could spawn off some worker processes early and just communicate queues of tasks to complete, independent of Twisted and the reactor. -Ken
7367
Age (days ago)
7367
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ken Kinder