gtk2 much slower than gtk1 - really !?

Sebastian Haase wrote:

Hi,
After finally upgrading to from wx2.4 to wx2.6 it seems very slow.
For example in PyShell (in the wxPython demo) when you "import wx" and then press the '.'-key after 'wx' it now takes maybe 3-4 seconds to show the popup-list of the module members before it used to be .5 seconds !!
Also general typing (like just holding down a key for some time) seems noticeably slower.
I'm running Linux (debian stable=sarge) on a P4 1.8MHz 512MB.
I use wxWidgets and wxPython from a recent CVS (first 2.6.0, then 2.6.1)

I suspect that it has to do with the new Gtk2.

What can I do ? Could others (please) confirm this slowdown !?

Yes, I noticed that too. I don't know if it was the move from wxPython 2.4 to 2.5/2.6, or the move from Gtk1 to Gtk2, but it is definitely much slower in places.

Then again, it is also much more delicious-looking too. :slight_smile:

I tried to build wx with GTK1 but got many warnings like:
Gdk-CRITICAL **: file gdkdraw.c: line 89 (gdk_draw_rectangle): assertion `drawable != NULL' failed.
Gdk-CRITICAL **: file gdkgc.c: line 713 (gdk_gc_set_clip_region): assertion `gc != NULL' failed.

I get these types of messages whenever opening a new frame, using Gtk2 on wxPython 2.6.1. I don't recall seeing them in Gtk1 days. Not these exact message, but messages of the same structure. I've been ignoring them (they don't seem to do any harm) but they are annoying.

ยทยทยท

--
Paul McNett
http://paulmcnett.com
http://dabodev.com