[Gtk-sharp-list] Increesing glade-sharp speed

Pablo Fischer pablo@pablo.com.mx
Thu, 16 Oct 2003 19:44:16 -0500


Ok, the output of mono --profile mBloggy.exe prints this methods and the
memory used by each one:

     292 KB Glade.XML::.ctor(Assembly,string,string,string)
     220 KB System.Collections.ArrayList::.ctor()
      99 KB System.Array::CreateInstance(Type,int)
      66 KB System.Xml.XmlConstructs::.cctor()
      52 KB
System.Collections.Hashtable::.ctor(int,single,IHashCodeProvider,ICo
mparer)
      49 KB
System.MonoCustomAttrs::GetCustomAttributes(ICustomAttributeProvider
,Type,bool)

So..
Total memory allocated: 1163 KB

I know it maybe sounds stupid to think in decreasing that use of memory
(for example, to use less than 1000 KB). But, the Glade.XML it's using
292 KB, is it normal to use that memory just for loading the file?

Thanks!
Pablo


El jue, 16-10-2003 a las 14:16, Miguel de Icaza escribi=F3:
> Hello,
>=20
> > Well, I have a question. I created my interface with Glade and Im
> > loading it in my app (using it as a resource), however Im testing the
> > speed and time that the application takes to start (it takes 6 seconds)=
.
> > So..
> >=20
> > 1. One reason that my application is taking 6 seconds (for me its too
> > much) could be the use of a complete Glade Intercae?
>=20
> That is highly unusual.  If you have various dialogs, you could try
> splitting it up in various glade files.
>=20
> It would be useful also to study the output of:
>=20
> 	mono --profile app.exe
>=20
> > 2. And as question 1, it depends of how big is my file.glade? or doesn'=
t
> > matters.
>=20
> It shouldnt really.
--=20
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt