[Twisted-Python] Gtk2Reactor: what are the reasons for avoiding GLib functions?

Itamar Turner-Trauring itamar at itamarst.org
Tue Apr 5 06:04:46 MDT 2011


On Tue, 2011-04-05 at 15:08 +0800, Jason Heeris wrote:
> I'd like to try and get to the bottom of the various problems with
> Twisted + GTK + Windows (mainly issue #4932[1], but see also issues
> #4376[2], #4862[3], #1759[4]).

Thanks for looking into this!

> On issue #4376 there's a comment from Exarkun:
> 
> "glib handles timeouts much less efficiently than any of the existing
> Twisted reactors. Letting glib take care of these would probably make
> the glib-based reactors unusable for applications with many timeouts."
> 
> Is there a benchmark or piece of code somewhere that verifies this (or
> at least gives some sort of demonstration of "unuseable")?

https://bugzilla.gnome.org/show_bug.cgi?id=143061

I don't think it's ever going to get fixed on the gtk side, I filed that
bug in 2004. The issues on Windows may be different than this, for that
matter.





More information about the Twisted-Python mailing list