зеркало из https://github.com/mono/mail-archives.git
90 строки
3.4 KiB
HTML
90 строки
3.4 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE> [Gtk-sharp-list] Increesing glade-sharp speed
|
||
|
</TITLE>
|
||
|
<LINK REL="Index" HREF="index.html" >
|
||
|
<LINK REL="made" HREF="mailto:lupus%40ximian.com">
|
||
|
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
|
||
|
<LINK REL="Previous" HREF="002588.html">
|
||
|
<LINK REL="Next" HREF="002582.html">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#ffffff">
|
||
|
<H1>[Gtk-sharp-list] Increesing glade-sharp speed
|
||
|
</H1>
|
||
|
<B>Paolo Molaro
|
||
|
</B>
|
||
|
<A HREF="mailto:lupus%40ximian.com"
|
||
|
TITLE="[Gtk-sharp-list] Increesing glade-sharp speed">lupus@ximian.com
|
||
|
</A><BR>
|
||
|
<I>Fri, 17 Oct 2003 16:21:08 +0200</I>
|
||
|
<P><UL>
|
||
|
<LI> Previous message: <A HREF="002588.html">[Gtk-sharp-list] Increesing glade-sharp speed
|
||
|
</A></li>
|
||
|
<LI> Next message: <A HREF="002582.html">[Gtk-sharp-list] Losing Data of a TreeView
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#2589">[ date ]</a>
|
||
|
<a href="thread.html#2589">[ thread ]</a>
|
||
|
<a href="subject.html#2589">[ subject ]</a>
|
||
|
<a href="author.html#2589">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
<HR>
|
||
|
<!--beginarticle-->
|
||
|
<PRE>On 10/16/03 Pablo Fischer wrote:
|
||
|
><i> Ok, the output of mono --profile mBloggy.exe prints this methods and the
|
||
|
</I>><i> memory used by each one:
|
||
|
</I>><i>
|
||
|
</I>><i> 292 KB Glade.XML::.ctor(Assembly,string,string,string)
|
||
|
</I>><i> 220 KB System.Collections.ArrayList::.ctor()
|
||
|
</I>><i> 99 KB System.Array::CreateInstance(Type,int)
|
||
|
</I>><i> 66 KB System.Xml.XmlConstructs::.cctor()
|
||
|
</I>><i> 52 KB
|
||
|
</I>><i> System.Collections.Hashtable::.ctor(int,single,IHashCodeProvider,ICo
|
||
|
</I>><i> mparer)
|
||
|
</I>><i> 49 KB
|
||
|
</I>><i> System.MonoCustomAttrs::GetCustomAttributes(ICustomAttributeProvider
|
||
|
</I>><i> ,Type,bool)
|
||
|
</I>><i>
|
||
|
</I>><i> So..
|
||
|
</I>><i> Total memory allocated: 1163 KB
|
||
|
</I>><i>
|
||
|
</I>><i> I know it maybe sounds stupid to think in decreasing that use of memory
|
||
|
</I>><i> (for example, to use less than 1000 KB). But, the Glade.XML it's using
|
||
|
</I>><i> 292 KB, is it normal to use that memory just for loading the file?
|
||
|
</I>
|
||
|
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
|
||
|
no.
|
||
|
The code may well use more memory than needed, but let's not speculate
|
||
|
too much on a wrong reading of the numbers...
|
||
|
|
||
|
lupus
|
||
|
|
||
|
--
|
||
|
-----------------------------------------------------------------
|
||
|
<A HREF="mailto:lupus@debian.org">lupus@debian.org</A> debian/rules
|
||
|
<A HREF="mailto:lupus@ximian.com">lupus@ximian.com</A> Monkeys do it better
|
||
|
|
||
|
</PRE>
|
||
|
<!--endarticle-->
|
||
|
<HR>
|
||
|
<P><UL>
|
||
|
<!--threads-->
|
||
|
<LI> Previous message: <A HREF="002588.html">[Gtk-sharp-list] Increesing glade-sharp speed
|
||
|
</A></li>
|
||
|
<LI> Next message: <A HREF="002582.html">[Gtk-sharp-list] Losing Data of a TreeView
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#2589">[ date ]</a>
|
||
|
<a href="thread.html#2589">[ thread ]</a>
|
||
|
<a href="subject.html#2589">[ subject ]</a>
|
||
|
<a href="author.html#2589">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
</body></html>
|