Author: miguel
Date: 2007-05-31 15:29:37 -0400 (Thu, 31 May 2007)
New Revision: 78367

Modified:
   trunk/moon/README
Log:
up

Modified: trunk/moon/README
===================================================================
--- trunk/moon/README   2007-05-31 19:29:32 UTC (rev 78366)
+++ trunk/moon/README   2007-05-31 19:29:37 UTC (rev 78367)
@@ -75,6 +75,31 @@
        We will likely have to introudce some of the same classes to mirror
        the hierarchy as my over-simplification left a few things out.
 
+* Lighter objects
+
+       Currently the code stores all the properties in the classes,
+       this needs to be changed to use a DependencyProperty-like system,
+       which basically makes objects lightweight.
+
+       All objects basically have a hashtable:
+
+               Hashtable properties;
+
+       And properties become for example:
+
+               static default_value_for_x;
+
+               object_get_x ()
+               {
+                       if (properties.Contains ("x"))
+                               return properties ["x"];
+                       else
+                               return default_value_for_x;
+               }
+
+       This ensures that objects with a few hundred exposed
+       properties (that are barely changed) do not consume a lot of memory.
+
 * Rendering in Items
 
        Rendering currently passes the parent affine, but it might be possible 
to

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to