[Twisted-Python] twisted on os x: cfreactor or kqreactor?

rayg rayg at varchars.com
Fri Apr 23 12:23:53 EDT 2004


i just created a fink package for PyKQeue
(http://sourceforge.net/tracker/index.php?func=detail&aid=940552&group_id=17203&atid=414256)
and this now allows me to use kqreactor.

if i'm not not planning on using any cocoa functionality, is there any
advantage to use cfreactor over kqreactor on os x?

i wasn't able to find any direct comparison between the mechanisms behind
kqreactor and cfreactor, but i did see that NSRunLoop is asynchronous,
like kqueue.  i've tested both reactors on a simple script and noticed
cfreactor doesn't stop() 75% of the time, so i'm inclined to just use
kqreactor, instead of tracking down why cfreactor isn't behaving...




More information about the Twisted-Python mailing list