[Mono-bugs] [Bug 52753][Wis] New - Reflection on properties allocates lots of memory

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 11 Jan 2004 16:03:45 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52753

--- shadow/52753	2004-01-11 16:03:45.000000000 -0500
+++ shadow/52753.tmp.18337	2004-01-11 16:03:45.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 52753
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Reflection on properties allocates lots of memory
+
+When we do reflection operations on properties, much memory is allocated.
+
+This issue is when we do calls like:
+
+typeof (foo).GetProperty ("name");
+
+What we do is to list *ALL* the properties in the class, and then check to
+see if any have the name "name". What we should do is pass "name" to the
+runtime and have it only give properties with the correct name.
+
+Attached is a `small' example. On mono, this takes 21 sec. On a slower
+computer with MS.net, it takes 3 sec.