Re: (severe) performance issues
- From: Paul Davis <paul linuxaudiosystems com>
- To: Ivan Baldo <ibaldo adinet com uy>
- Cc: gtk-list gnome org
- Subject: Re: (severe) performance issues
- Date: Thu, 29 Mar 2007 15:42:49 -0400
On Thu, 2007-03-29 at 16:22 -0300, Ivan Baldo wrote:
> In gtk_label_size_request there is code to get the desired width and
> height of the label, that could be called on the set_text and set_label
> functions to see if they differ to the current allocated ones by a
> threshold, and only then call gtk_widget_queue_resize_no_redraw
> (expensive?) and always do a redraw (since the text is different so
> something has changed).
getting the height+width is not cheap with pango. checking that the text
itself has not changed should be the first line of defense.
also, on another note. it seems that some people think i am a GTK
developer. i am not. i write applications with GTK and because they are
extremely demanding and complex, i have been forced to grapple with GTK
in a way that hopefully most of you are not.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]