[Twisted-Python] reactor.callLater ponderings

Itamar Shtull-Trauring itamar at itamarst.org
Sun Dec 14 20:52:40 EST 2003


On Sun, 2003-12-14 at 20:41, jjanecek at telusplanet.net wrote:

> Also is there a place that I can use to set how frequent i want the reactor
> to check to see if a callLater function should be run ?

Nope. If you want high resolution you probably want
twisted.internet.task.LoopingCall.

Using itimer python extensions, and registering reactor.wakeUp() as the
signal handler for SIGALARM can also help.

Also note the kqueue python extension is supposedly badly designed, and
needs a rewrite.

I've seen better than 1sec resolution on linux - 20ms seems to be limit
there too without using something like LoopingCall.

-- 
Itamar Shtull-Trauring    http://itamarst.org
Looking for a job: http://itamarst.org/resume.html





More information about the Twisted-Python mailing list