Re: Libglade resource consuming question.
- From: Tristan Van Berkom <tvb gnome org>
- To: Carlos Savoretti <csavoretti clubsanjorge com ar>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Libglade resource consuming question.
- Date: Thu, 09 Aug 2007 12:31:14 -0400
On Thu, 2007-08-09 at 12:55 -0400, Carlos Savoretti wrote:
Hi all!
[...]
Do I be clear ? (When doubt appears it's probably not...)
Shortly: GladeXml objects with a moderate amount of widgets are
very resource consuming ? or not compared against
xmlDocDumpFormatMemory () result ?
You can take a lot of different approaches depending on what
your priorities are - parsing glade files can be time consuming
as well as memory consuming.
a buffer with glade file contents probably weighs around the
same as a GladeXML tree - but remember - you NEVER have a
GladeXML tree lying around (it only serves the purpose of
creating the widget heirarcy, after that its useless).
If you need to rebuild the hierarchy, you need to keep the
buffer around, if you build everything at once, you
can free the buffer *and the GladeXML object* and just
gtk_widget_show/hide() the built widgets as needed.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]