Re: Gtk performance issues from a user's point of view



2006/9/29, Federico Mena Quintero <federico ximian com>:
It's interesting to note that if I add a single button to the window,
then it gets noticeably slower (but it doesn't lag, either).  Then,
Sysprof says that 69% of the time is spent in libfb/libxaa in the X
server, not GTK+ itself.

I discussed with Markku Vire today some performance-related stuff, and
actually this same thing came up.

He had taken GTK+ 2.10, ran gtk-demo with buttons and resized the
window like mad. Sysprof indicated that some (IIRC) 75% of the time
was spent within X (dunno the exact setup). There was some funkyness
with expose propagation (fetching a style property _every time_,
yikes!) but even if you'd optimize the whole section of GTK+ code to
be faster, that would yield a very tiny improvement. So it really
seems to be something in the way GTK+ uses X (or graphics in general)
.

I think I'll try to recreate the numbers too to try to get a handle of
what's going on.

It would be interesting to see what for example disabling
double-buffering on the resized widgets would mean...

--
Kalle Vahlman, zuh iki fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]