On Tue, 07 Dec 2004 17:45:52 -0800 John Finlay <[EMAIL PROTECTED]> wrote:
> I see equally bad performance with both PyGTK 2.5 and PyGTK 2.4. The > ComboBox widget has terrible performance in laying out a large number > of menuitems in a grid which is what happens when the wrap width is > greater than 0. Even a wrap width of 1 has poor performance. IMO this > is a bug in GTK+. Unfortunately I don't think that there is a > workaround to this problem. The code that lays out the menuitems needs > to be rewritten. Interesting -- this must be different behavior. I'm definitely getting a dramatic performance difference. With my ubuntu warty box (pygtk 2.4.10, gtk 2.4.0), adding 1000 items to the ComboBox with wrap_width = 3 takes 2.9 seconds. With my ubuntu hoary box (pygtk 2.5.0, gtk 2.5.6), adding 1000 items to the ComboBox with wrap_width not set takes just under a second. Adding 1000 items with wrap_width set is still running, and has been going for over 300 seconds! What's more, the hoary box (the slow one), is running a 3 GHz cpu with 1/2 gig of ram. The warty box (the fast one), is running 450 MHz cpu with 128 mb of ram. Tom _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
