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

Paolo Molaro lupus@ximian.com
Fri, 17 Oct 2003 16:21:08 +0200

On 10/16/03 Pablo Fischer wrote:
> 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?

That number is the total amount of memory allocated: it's not the memory
in use, since it doesn't take into account the memory that has been freed.
It's like profiling a C application and just adding the amount of memory
allocated with malloc(): is that the memory in use by the app? Obviously
The code may well use more memory than needed, but let's not speculate
too much on a wrong reading of the numbers...


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better